{"action":"created","issue":{"url":"https://api.github.com/repos/JosephSilber/bouncer/issues/155","repository_url":"https://api.github.com/repos/JosephSilber/bouncer","labels_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/155/comments","events_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/155/events","html_url":"https://github.com/JosephSilber/bouncer/issues/155","id":203855377,"number":155,"title":"finding users with access to model","user":{"login":"shawndalton","id":7695090,"avatar_url":"https://avatars.githubusercontent.com/u/7695090?v=3","gravatar_id":"","url":"https://api.github.com/users/shawndalton","html_url":"https://github.com/shawndalton","followers_url":"https://api.github.com/users/shawndalton/followers","following_url":"https://api.github.com/users/shawndalton/following{/other_user}","gists_url":"https://api.github.com/users/shawndalton/gists{/gist_id}","starred_url":"https://api.github.com/users/shawndalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawndalton/subscriptions","organizations_url":"https://api.github.com/users/shawndalton/orgs","repos_url":"https://api.github.com/users/shawndalton/repos","events_url":"https://api.github.com/users/shawndalton/events{/privacy}","received_events_url":"https://api.github.com/users/shawndalton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-29T07:10:00Z","updated_at":"2017-01-29T07:25:36Z","closed_at":"2017-01-29T07:25:36Z","body":"I'm trying to get a list of users that have access to a model item so i can grant or revoke access to the item:\r\n\r\nhere's how i set them:\r\n\r\n```\r\nBouncer::allow($otheruser)->to('edit', $item);\r\n```\r\n\r\nI'd like to query all the users to see if they have ('edit', $item).\r\n\r\nsomething like:\r\n```\r\nUser::hasAttributes('edit', $item)->get()\r\n```\r\nIs this available?\r\n"},"comment":{"url":"https://api.github.com/repos/JosephSilber/bouncer/issues/comments/275898714","html_url":"https://github.com/JosephSilber/bouncer/issues/155#issuecomment-275898714","issue_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/155","id":275898714,"user":{"login":"shawndalton","id":7695090,"avatar_url":"https://avatars.githubusercontent.com/u/7695090?v=3","gravatar_id":"","url":"https://api.github.com/users/shawndalton","html_url":"https://github.com/shawndalton","followers_url":"https://api.github.com/users/shawndalton/followers","following_url":"https://api.github.com/users/shawndalton/following{/other_user}","gists_url":"https://api.github.com/users/shawndalton/gists{/gist_id}","starred_url":"https://api.github.com/users/shawndalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawndalton/subscriptions","organizations_url":"https://api.github.com/users/shawndalton/orgs","repos_url":"https://api.github.com/users/shawndalton/repos","events_url":"https://api.github.com/users/shawndalton/events{/privacy}","received_events_url":"https://api.github.com/users/shawndalton/received_events","type":"User","site_admin":false},"created_at":"2017-01-29T07:25:36Z","updated_at":"2017-01-29T07:25:36Z","body":"nevermind... just found:\r\n [https://github.com/JosephSilber/bouncer/issues/126#issuecomment-246983616](url)\r\n(needed a bigger shovel)."}}
{"actor":{"display_login":"shawndalton"}}