{"action":"created","issue":{"url":"https://api.github.com/repos/onury/accesscontrol/issues/57","repository_url":"https://api.github.com/repos/onury/accesscontrol","labels_url":"https://api.github.com/repos/onury/accesscontrol/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/onury/accesscontrol/issues/57/comments","events_url":"https://api.github.com/repos/onury/accesscontrol/issues/57/events","html_url":"https://github.com/onury/accesscontrol/issues/57","id":365956389,"node_id":"MDU6SXNzdWUzNjU5NTYzODk=","number":57,"title":"Recommended way for resource-based access control","user":{"login":"sarneeh","id":11553624,"node_id":"MDQ6VXNlcjExNTUzNjI0","avatar_url":"https://avatars2.githubusercontent.com/u/11553624?v=4","gravatar_id":"","url":"https://api.github.com/users/sarneeh","html_url":"https://github.com/sarneeh","followers_url":"https://api.github.com/users/sarneeh/followers","following_url":"https://api.github.com/users/sarneeh/following{/other_user}","gists_url":"https://api.github.com/users/sarneeh/gists{/gist_id}","starred_url":"https://api.github.com/users/sarneeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarneeh/subscriptions","organizations_url":"https://api.github.com/users/sarneeh/orgs","repos_url":"https://api.github.com/users/sarneeh/repos","events_url":"https://api.github.com/users/sarneeh/events{/privacy}","received_events_url":"https://api.github.com/users/sarneeh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-02T15:34:08Z","updated_at":"2018-10-06T06:08:57Z","closed_at":null,"author_association":"NONE","body":"So I'd like to restrict access to specific resource instances. I came with an idea to just use `.resource('video:id')` for grants but I'm not sure if it's a good way.\r\n\r\nTo be more specific: I'm talking about a case where user X owns a resource, and user Y needs to have access to it, without having a `read:any` grant.\r\n\r\nDo you recommend any other way to handle this problem?"},"comment":{"url":"https://api.github.com/repos/onury/accesscontrol/issues/comments/427549542","html_url":"https://github.com/onury/accesscontrol/issues/57#issuecomment-427549542","issue_url":"https://api.github.com/repos/onury/accesscontrol/issues/57","id":427549542,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzU0OTU0Mg==","user":{"login":"sarneeh","id":11553624,"node_id":"MDQ6VXNlcjExNTUzNjI0","avatar_url":"https://avatars2.githubusercontent.com/u/11553624?v=4","gravatar_id":"","url":"https://api.github.com/users/sarneeh","html_url":"https://github.com/sarneeh","followers_url":"https://api.github.com/users/sarneeh/followers","following_url":"https://api.github.com/users/sarneeh/following{/other_user}","gists_url":"https://api.github.com/users/sarneeh/gists{/gist_id}","starred_url":"https://api.github.com/users/sarneeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarneeh/subscriptions","organizations_url":"https://api.github.com/users/sarneeh/orgs","repos_url":"https://api.github.com/users/sarneeh/repos","events_url":"https://api.github.com/users/sarneeh/events{/privacy}","received_events_url":"https://api.github.com/users/sarneeh/received_events","type":"User","site_admin":false},"created_at":"2018-10-06T06:08:57Z","updated_at":"2018-10-06T06:08:57Z","author_association":"NONE","body":"@scandinave Oh, I guess I misunderstood your reply. Having a `resources` property in the user's token/session makes sense 😄 Thanks for the suggestion!"}}
{"actor":{"display_login":"sarneeh"}}