{"action":"opened","issue":{"url":"https://api.github.com/repos/directus/directus/issues/1937","repository_url":"https://api.github.com/repos/directus/directus","labels_url":"https://api.github.com/repos/directus/directus/issues/1937/labels{/name}","comments_url":"https://api.github.com/repos/directus/directus/issues/1937/comments","events_url":"https://api.github.com/repos/directus/directus/issues/1937/events","html_url":"https://github.com/directus/directus/issues/1937","id":270820828,"number":1937,"title":"Privileges API only available for admin user group","user":{"login":"BennerGe","id":26544180,"avatar_url":"https://avatars3.githubusercontent.com/u/26544180?v=4","gravatar_id":"","url":"https://api.github.com/users/BennerGe","html_url":"https://github.com/BennerGe","followers_url":"https://api.github.com/users/BennerGe/followers","following_url":"https://api.github.com/users/BennerGe/following{/other_user}","gists_url":"https://api.github.com/users/BennerGe/gists{/gist_id}","starred_url":"https://api.github.com/users/BennerGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BennerGe/subscriptions","organizations_url":"https://api.github.com/users/BennerGe/orgs","repos_url":"https://api.github.com/users/BennerGe/repos","events_url":"https://api.github.com/users/BennerGe/events{/privacy}","received_events_url":"https://api.github.com/users/BennerGe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-02T21:57:14Z","updated_at":"2017-11-02T21:57:14Z","closed_at":null,"author_association":"NONE","body":"## Version Info\r\n  - Directus version and branch: Develop branch\r\n\r\n## Actual Behavior\r\nThe privileges endpoint can only be accessed as admin, even when the privileges are set to `read_all` for the table `direcuts_privileges`.\r\nThis is due to the following code:\r\nhttps://github.com/directus/directus/blob/1db9ed459b693632ea0f8012750c498c98d5c556/api/routes/A1/Privileges.php#L26-L28\r\n\r\nIs this behaviour desired? If yes, how can an application check, if an user is allowed to execute an action? This would be nice, e.g. to hide an button if the user is not allowed to add an entry to a table. "}}
{"actor":{"display_login":"BennerGe"}}