{"action":"created","issue":{"url":"https://api.github.com/repos/OWASP/rbac/issues/107","repository_url":"https://api.github.com/repos/OWASP/rbac","labels_url":"https://api.github.com/repos/OWASP/rbac/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/OWASP/rbac/issues/107/comments","events_url":"https://api.github.com/repos/OWASP/rbac/issues/107/events","html_url":"https://github.com/OWASP/rbac/issues/107","id":360731438,"node_id":"MDU6SXNzdWUzNjA3MzE0Mzg=","number":107,"title":"How to add Rule (such as Author Rule) to an permission","user":{"login":"thanhnambkhn","id":4994500,"node_id":"MDQ6VXNlcjQ5OTQ1MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/4994500?v=4","gravatar_id":"","url":"https://api.github.com/users/thanhnambkhn","html_url":"https://github.com/thanhnambkhn","followers_url":"https://api.github.com/users/thanhnambkhn/followers","following_url":"https://api.github.com/users/thanhnambkhn/following{/other_user}","gists_url":"https://api.github.com/users/thanhnambkhn/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhnambkhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhnambkhn/subscriptions","organizations_url":"https://api.github.com/users/thanhnambkhn/orgs","repos_url":"https://api.github.com/users/thanhnambkhn/repos","events_url":"https://api.github.com/users/thanhnambkhn/events{/privacy}","received_events_url":"https://api.github.com/users/thanhnambkhn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-17T06:00:18Z","updated_at":"2018-09-17T06:02:00Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\nDo we has feature such as adding Rule  to an permission? \r\nLet's images that we has a post Editor Role (with permissions as follow create/ update/ delete a post )\r\nTo pass checking permissions Update and delete a post, user needs:\r\n- Be assigned to 2 two permissons\r\n**- Need to be the author of the current post (Rule is a peace of code which do logic, ex: $post->created_by = $currentUserId) ==> So how to do that?**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OWASP/rbac/issues/comments/421897001","html_url":"https://github.com/OWASP/rbac/issues/107#issuecomment-421897001","issue_url":"https://api.github.com/repos/OWASP/rbac/issues/107","id":421897001,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTg5NzAwMQ==","user":{"login":"thanhnambkhn","id":4994500,"node_id":"MDQ6VXNlcjQ5OTQ1MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/4994500?v=4","gravatar_id":"","url":"https://api.github.com/users/thanhnambkhn","html_url":"https://github.com/thanhnambkhn","followers_url":"https://api.github.com/users/thanhnambkhn/followers","following_url":"https://api.github.com/users/thanhnambkhn/following{/other_user}","gists_url":"https://api.github.com/users/thanhnambkhn/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhnambkhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhnambkhn/subscriptions","organizations_url":"https://api.github.com/users/thanhnambkhn/orgs","repos_url":"https://api.github.com/users/thanhnambkhn/repos","events_url":"https://api.github.com/users/thanhnambkhn/events{/privacy}","received_events_url":"https://api.github.com/users/thanhnambkhn/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T06:02:00Z","updated_at":"2018-09-17T06:02:00Z","author_association":"NONE","body":"@abiusx Do you think it is useful feature?"}}
{"actor":{"display_login":"thanhnambkhn"}}