{"action":"opened","issue":{"url":"https://api.github.com/repos/santigarcor/laratrust/issues/7","repository_url":"https://api.github.com/repos/santigarcor/laratrust","labels_url":"https://api.github.com/repos/santigarcor/laratrust/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/santigarcor/laratrust/issues/7/comments","events_url":"https://api.github.com/repos/santigarcor/laratrust/issues/7/events","html_url":"https://github.com/santigarcor/laratrust/issues/7","id":160477026,"number":7,"title":"Question about LaratrustUserTrait::can","user":{"login":"KKSzymanowski","id":13980973,"avatar_url":"https://avatars.githubusercontent.com/u/13980973?v=3","gravatar_id":"","url":"https://api.github.com/users/KKSzymanowski","html_url":"https://github.com/KKSzymanowski","followers_url":"https://api.github.com/users/KKSzymanowski/followers","following_url":"https://api.github.com/users/KKSzymanowski/following{/other_user}","gists_url":"https://api.github.com/users/KKSzymanowski/gists{/gist_id}","starred_url":"https://api.github.com/users/KKSzymanowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KKSzymanowski/subscriptions","organizations_url":"https://api.github.com/users/KKSzymanowski/orgs","repos_url":"https://api.github.com/users/KKSzymanowski/repos","events_url":"https://api.github.com/users/KKSzymanowski/events{/privacy}","received_events_url":"https://api.github.com/users/KKSzymanowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-15T17:17:53Z","updated_at":"2016-06-15T17:17:53Z","closed_at":null,"body":"I was wondering, shouldn't `$user->can([])` return `true` when user has no permissions?\r\n\r\nExample:\r\nWe have some collection of Things. Every one of the Things requires one from a set of permissions to access. Some of them don't require any permissions to access.\r\nWhen a User doesn't have any permissions, he should still access the Thing that requires no permissions.\r\n\r\nWith current algorithm, in previously mentioned case User is forbidden to do that, because we return `$requireAll` which is `false`."}}
{"actor":{"display_login":"KKSzymanowski"}}