{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3966","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3966/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3966/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3966/events","html_url":"https://github.com/activeadmin/activeadmin/issues/3966","id":81173837,"number":3966,"title":"Bug when create a register page and use Pundit for authorization","user":{"login":"lucianosousa","id":44833,"avatar_url":"https://avatars.githubusercontent.com/u/44833?v=3","gravatar_id":"","url":"https://api.github.com/users/lucianosousa","html_url":"https://github.com/lucianosousa","followers_url":"https://api.github.com/users/lucianosousa/followers","following_url":"https://api.github.com/users/lucianosousa/following{/other_user}","gists_url":"https://api.github.com/users/lucianosousa/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianosousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianosousa/subscriptions","organizations_url":"https://api.github.com/users/lucianosousa/orgs","repos_url":"https://api.github.com/users/lucianosousa/repos","events_url":"https://api.github.com/users/lucianosousa/events{/privacy}","received_events_url":"https://api.github.com/users/lucianosousa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-26T22:56:29Z","updated_at":"2015-05-28T17:05:07Z","closed_at":"2015-05-28T17:05:07Z","body":"I just followed all examples here in ActiveAdmin and in the Pundit documentation but I think there is some bug or unknown pending information to block access in Custom Pages from Active Admin.\r\n\r\nHere my example:\r\n\r\n#upload.rb\r\n```\r\nActiveAdmin.register_page \"Upload\" do\r\n  page_action :index do\r\n    ...\r\n  end\r\nend\r\n```\r\n\r\n#app/policies/upload_policy.rb\r\n```\r\nclass UploadPolicy < ApplicationPolicy\r\n\r\n  def index?\r\n    true if user.admin?\r\n  end\r\nend\r\n```\r\n\r\nSo, even with this code, all users can access this index page.\r\n\r\nAny tip here or this is a real bug?"},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/106492658","html_url":"https://github.com/activeadmin/activeadmin/issues/3966#issuecomment-106492658","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3966","id":106492658,"user":{"login":"lucianosousa","id":44833,"avatar_url":"https://avatars.githubusercontent.com/u/44833?v=3","gravatar_id":"","url":"https://api.github.com/users/lucianosousa","html_url":"https://github.com/lucianosousa","followers_url":"https://api.github.com/users/lucianosousa/followers","following_url":"https://api.github.com/users/lucianosousa/following{/other_user}","gists_url":"https://api.github.com/users/lucianosousa/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianosousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianosousa/subscriptions","organizations_url":"https://api.github.com/users/lucianosousa/orgs","repos_url":"https://api.github.com/users/lucianosousa/repos","events_url":"https://api.github.com/users/lucianosousa/events{/privacy}","received_events_url":"https://api.github.com/users/lucianosousa/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T17:05:07Z","updated_at":"2015-05-28T17:05:07Z","body":"I'll take a look. Thanks!"}}