{"action":"opened","issue":{"url":"https://api.github.com/repos/Alanaktion/phproject/issues/214","repository_url":"https://api.github.com/repos/Alanaktion/phproject","labels_url":"https://api.github.com/repos/Alanaktion/phproject/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/Alanaktion/phproject/issues/214/comments","events_url":"https://api.github.com/repos/Alanaktion/phproject/issues/214/events","html_url":"https://github.com/Alanaktion/phproject/issues/214","id":158846761,"number":214,"title":"Users should have a primary role and custom permissions","user":{"login":"Alanaktion","id":236490,"avatar_url":"https://avatars.githubusercontent.com/u/236490?v=3","gravatar_id":"","url":"https://api.github.com/users/Alanaktion","html_url":"https://github.com/Alanaktion","followers_url":"https://api.github.com/users/Alanaktion/followers","following_url":"https://api.github.com/users/Alanaktion/following{/other_user}","gists_url":"https://api.github.com/users/Alanaktion/gists{/gist_id}","starred_url":"https://api.github.com/users/Alanaktion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alanaktion/subscriptions","organizations_url":"https://api.github.com/users/Alanaktion/orgs","repos_url":"https://api.github.com/users/Alanaktion/repos","events_url":"https://api.github.com/users/Alanaktion/events{/privacy}","received_events_url":"https://api.github.com/users/Alanaktion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alanaktion/phproject/labels/enhancement","name":"enhancement","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-07T06:12:38Z","updated_at":"2016-06-07T06:12:38Z","closed_at":null,"body":"Instead of the current rank+role system, we should allow custom permissions and check for the permission existing on the current user instead of checking if their rank is high enough to perform an action. This would replace the Controller's `_requireLogin()` and `_requireAdmin()` functionality with something like `_requirePermission()`.\r\nThis would involve the creation of a new `user_permission` table. This table would link extra permissions to a user by ID. The user's permissions should be loaded and stored in a F3 global with something like `user_perms` so they can be used easily at any point in the application flow."}}
{"actor":{"display_login":"Alanaktion"}}