{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/foreman/issues/2967","labels_url":"https://api.github.com/repos/theforeman/foreman/issues/2967/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/2967/comments","events_url":"https://api.github.com/repos/theforeman/foreman/issues/2967/events","html_url":"https://github.com/theforeman/foreman/pull/2967","id":121229079,"number":2967,"title":"Fixes #12754 - adds permission name to 403 page","user":{"login":"ares","id":109773,"avatar_url":"https://avatars.githubusercontent.com/u/109773?v=3","gravatar_id":"","url":"https://api.github.com/users/ares","html_url":"https://github.com/ares","followers_url":"https://api.github.com/users/ares/followers","following_url":"https://api.github.com/users/ares/following{/other_user}","gists_url":"https://api.github.com/users/ares/gists{/gist_id}","starred_url":"https://api.github.com/users/ares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ares/subscriptions","organizations_url":"https://api.github.com/users/ares/orgs","repos_url":"https://api.github.com/users/ares/repos","events_url":"https://api.github.com/users/ares/events{/privacy}","received_events_url":"https://api.github.com/users/ares/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20re-review","name":"Needs re-review","color":"0052cc"},{"url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20testing","name":"Needs testing","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-09T12:44:33Z","updated_at":"2015-12-10T11:15:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/2967","html_url":"https://github.com/theforeman/foreman/pull/2967","diff_url":"https://github.com/theforeman/foreman/pull/2967.diff","patch_url":"https://github.com/theforeman/foreman/pull/2967.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/theforeman/foreman/issues/comments/163581642","html_url":"https://github.com/theforeman/foreman/pull/2967#issuecomment-163581642","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/2967","id":163581642,"user":{"login":"ares","id":109773,"avatar_url":"https://avatars.githubusercontent.com/u/109773?v=3","gravatar_id":"","url":"https://api.github.com/users/ares","html_url":"https://github.com/ares","followers_url":"https://api.github.com/users/ares/followers","following_url":"https://api.github.com/users/ares/following{/other_user}","gists_url":"https://api.github.com/users/ares/gists{/gist_id}","starred_url":"https://api.github.com/users/ares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ares/subscriptions","organizations_url":"https://api.github.com/users/ares/orgs","repos_url":"https://api.github.com/users/ares/repos","events_url":"https://api.github.com/users/ares/events{/privacy}","received_events_url":"https://api.github.com/users/ares/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T11:15:28Z","updated_at":"2015-12-10T11:15:28Z","body":"> It's not only missing permissions that can trigger render_403, i.e. admin-only actions, missing smart proxy auth and unauthed xhr requestes might trigger this code path.\r\n\r\nI added extra message for the case when admin account is needed. For xhr we never get to this page (and I guess the logger message is still valuable). The smart proxy auth can fail only in hosts controller (otherwise it's used only in API controllers) for `externalNodes` and `lookup`. The first one format is yaml, so again not hitting to 403 html and I didn't find the definition for the second one, is that a leftover?\r\n\r\nOther things should be resolved. Please rereview."}}