{"action":"created","issue":{"url":"https://api.github.com/repos/santigarcor/laratrust/issues/236","repository_url":"https://api.github.com/repos/santigarcor/laratrust","labels_url":"https://api.github.com/repos/santigarcor/laratrust/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/santigarcor/laratrust/issues/236/comments","events_url":"https://api.github.com/repos/santigarcor/laratrust/issues/236/events","html_url":"https://github.com/santigarcor/laratrust/issues/236","id":283350574,"number":236,"title":"give super admin all permissions","user":{"login":"chicag0","id":5142516,"avatar_url":"https://avatars0.githubusercontent.com/u/5142516?v=4","gravatar_id":"","url":"https://api.github.com/users/chicag0","html_url":"https://github.com/chicag0","followers_url":"https://api.github.com/users/chicag0/followers","following_url":"https://api.github.com/users/chicag0/following{/other_user}","gists_url":"https://api.github.com/users/chicag0/gists{/gist_id}","starred_url":"https://api.github.com/users/chicag0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chicag0/subscriptions","organizations_url":"https://api.github.com/users/chicag0/orgs","repos_url":"https://api.github.com/users/chicag0/repos","events_url":"https://api.github.com/users/chicag0/events{/privacy}","received_events_url":"https://api.github.com/users/chicag0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-19T19:55:21Z","updated_at":"2017-12-19T20:09:31Z","closed_at":null,"author_association":"NONE","body":"Is there a way to automatically give a superadmin type Role all permissions?  Or, everytime I create a new permission to I have to go back and assign it to the SuperAdmin?\r\n\r\nI know I can check if a user \" is SuperAdmin or ->can('doSomething') \" but I thought it would be easier to skip the first half of the check.  For example, it would be great if $superAdminUser->can('doSomethign') always returned true regardless of weather I already added that permission"},"comment":{"url":"https://api.github.com/repos/santigarcor/laratrust/issues/comments/352872310","html_url":"https://github.com/santigarcor/laratrust/issues/236#issuecomment-352872310","issue_url":"https://api.github.com/repos/santigarcor/laratrust/issues/236","id":352872310,"user":{"login":"chicag0","id":5142516,"avatar_url":"https://avatars0.githubusercontent.com/u/5142516?v=4","gravatar_id":"","url":"https://api.github.com/users/chicag0","html_url":"https://github.com/chicag0","followers_url":"https://api.github.com/users/chicag0/followers","following_url":"https://api.github.com/users/chicag0/following{/other_user}","gists_url":"https://api.github.com/users/chicag0/gists{/gist_id}","starred_url":"https://api.github.com/users/chicag0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chicag0/subscriptions","organizations_url":"https://api.github.com/users/chicag0/orgs","repos_url":"https://api.github.com/users/chicag0/repos","events_url":"https://api.github.com/users/chicag0/events{/privacy}","received_events_url":"https://api.github.com/users/chicag0/received_events","type":"User","site_admin":false},"created_at":"2017-12-19T20:09:31Z","updated_at":"2017-12-19T20:09:31Z","author_association":"NONE","body":"Thank you, that's a good idea -- I guess I could create a PermissionObserver and attach the permission to the Admin Role.  \r\n\r\nAlso, second question (not sure I need to create another issue) -- I was thinking that the permission_role table also had a team_id.  I'd like to assign different permissions per role, per team.  \r\n\r\nHere is what I imagine, I have two roles, called 'Team Leader' and 'Team Member' and I have a few teams like 'Support', 'Marketing', 'Sales'.  I want the 'Team Leader' role on 'Support team to have different permissions than the 'Team Leader' role on the 'Sales' team.  I want to use the same Permission, like 'read-posts' but assign it differently.\r\n\r\nIs there a suggested way to go about this without needing to create more permissions, like 'read-posts-sales' and 'read-posts-marketing'.\r\n"}}
{"actor":{"display_login":"chicag0"}}