{"action":"created","issue":{"url":"https://api.github.com/repos/CakeDC/users/issues/212","labels_url":"https://api.github.com/repos/CakeDC/users/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/CakeDC/users/issues/212/comments","events_url":"https://api.github.com/repos/CakeDC/users/issues/212/events","html_url":"https://github.com/CakeDC/users/issues/212","id":55771906,"number":212,"title":"method isAuthorized - Access to admin_action*","user":{"login":"manfe","id":971608,"avatar_url":"https://avatars.githubusercontent.com/u/971608?v=3","gravatar_id":"","url":"https://api.github.com/users/manfe","html_url":"https://github.com/manfe","followers_url":"https://api.github.com/users/manfe/followers","following_url":"https://api.github.com/users/manfe/following{/other_user}","gists_url":"https://api.github.com/users/manfe/gists{/gist_id}","starred_url":"https://api.github.com/users/manfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manfe/subscriptions","organizations_url":"https://api.github.com/users/manfe/orgs","repos_url":"https://api.github.com/users/manfe/repos","events_url":"https://api.github.com/users/manfe/events{/privacy}","received_events_url":"https://api.github.com/users/manfe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T15:41:09Z","updated_at":"2015-08-06T15:49:25Z","closed_at":"2015-08-06T08:28:52Z","body":"I really try to find any answer looking at issues and google, but I couldn't find.\r\n\r\nAny user registered can access the page admin_index, admin_edit etc.\r\n\r\nTrying to use the isAuthorized method I could see that the method isn't called never.\r\n\r\nI tried to extend but no success, how do you guys block the access to pages that only admin can access? \r\n\r\nThank you so much. There are a some things that need to be  on documentation (I will help with it).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CakeDC/users/issues/comments/128416078","html_url":"https://github.com/CakeDC/users/issues/212#issuecomment-128416078","issue_url":"https://api.github.com/repos/CakeDC/users/issues/212","id":128416078,"user":{"login":"dsinni","id":4733018,"avatar_url":"https://avatars.githubusercontent.com/u/4733018?v=3","gravatar_id":"","url":"https://api.github.com/users/dsinni","html_url":"https://github.com/dsinni","followers_url":"https://api.github.com/users/dsinni/followers","following_url":"https://api.github.com/users/dsinni/following{/other_user}","gists_url":"https://api.github.com/users/dsinni/gists{/gist_id}","starred_url":"https://api.github.com/users/dsinni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsinni/subscriptions","organizations_url":"https://api.github.com/users/dsinni/orgs","repos_url":"https://api.github.com/users/dsinni/repos","events_url":"https://api.github.com/users/dsinni/events{/privacy}","received_events_url":"https://api.github.com/users/dsinni/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T15:49:25Z","updated_at":"2015-08-06T15:49:25Z","body":"Thanks, Jorge! I'll give it a shot.\n\n\nCheers,\n\nDan\n\nOn Thu, Aug 6, 2015 at 4:28 AM, Jorge M. González Martín <\nnotifications@github.com> wrote:\n\n> Hi, you could extend the UsersController\n> https://github.com/CakeDC/users/blob/develop/Docs/Documentation/Auth-in-the-Users-Plugin.md\n> and override the _setupAuth metod to customize how the Auth is configured,\n> adding Controller authorize for example and checking the prefix and role in\n> the isAuthorized method.\n>\n> Thank you!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/CakeDC/users/issues/212#issuecomment-128290696>.\n>\n"}}