{"action":"created","issue":{"url":"https://api.github.com/repos/mblarsen/vue-browser-acl/issues/13","repository_url":"https://api.github.com/repos/mblarsen/vue-browser-acl","labels_url":"https://api.github.com/repos/mblarsen/vue-browser-acl/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mblarsen/vue-browser-acl/issues/13/comments","events_url":"https://api.github.com/repos/mblarsen/vue-browser-acl/issues/13/events","html_url":"https://github.com/mblarsen/vue-browser-acl/issues/13","id":356257429,"node_id":"MDU6SXNzdWUzNTYyNTc0Mjk=","number":13,"title":"ACL Policies","user":{"login":"asadhshujau","id":16648185,"node_id":"MDQ6VXNlcjE2NjQ4MTg1","avatar_url":"https://avatars3.githubusercontent.com/u/16648185?v=4","gravatar_id":"","url":"https://api.github.com/users/asadhshujau","html_url":"https://github.com/asadhshujau","followers_url":"https://api.github.com/users/asadhshujau/followers","following_url":"https://api.github.com/users/asadhshujau/following{/other_user}","gists_url":"https://api.github.com/users/asadhshujau/gists{/gist_id}","starred_url":"https://api.github.com/users/asadhshujau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asadhshujau/subscriptions","organizations_url":"https://api.github.com/users/asadhshujau/orgs","repos_url":"https://api.github.com/users/asadhshujau/repos","events_url":"https://api.github.com/users/asadhshujau/events{/privacy}","received_events_url":"https://api.github.com/users/asadhshujau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-02T06:40:56Z","updated_at":"2018-09-05T03:30:12Z","closed_at":"2018-09-05T03:30:12Z","author_association":"NONE","body":"how do i use Policies with vue browser acl ?"},"comment":{"url":"https://api.github.com/repos/mblarsen/vue-browser-acl/issues/comments/418588162","html_url":"https://github.com/mblarsen/vue-browser-acl/issues/13#issuecomment-418588162","issue_url":"https://api.github.com/repos/mblarsen/vue-browser-acl/issues/13","id":418588162,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODU4ODE2Mg==","user":{"login":"mblarsen","id":247048,"node_id":"MDQ6VXNlcjI0NzA0OA==","avatar_url":"https://avatars0.githubusercontent.com/u/247048?v=4","gravatar_id":"","url":"https://api.github.com/users/mblarsen","html_url":"https://github.com/mblarsen","followers_url":"https://api.github.com/users/mblarsen/followers","following_url":"https://api.github.com/users/mblarsen/following{/other_user}","gists_url":"https://api.github.com/users/mblarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/mblarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblarsen/subscriptions","organizations_url":"https://api.github.com/users/mblarsen/orgs","repos_url":"https://api.github.com/users/mblarsen/repos","events_url":"https://api.github.com/users/mblarsen/events{/privacy}","received_events_url":"https://api.github.com/users/mblarsen/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T03:30:12Z","updated_at":"2018-09-05T03:30:12Z","author_association":"OWNER","body":"See https://github.com/mblarsen/browser-acl#setup for how to wire up and https://github.com/mblarsen/browser-acl#policy for an example.\r\n\r\n```\r\nimport PostPolicy from './PostPolicy.js'\r\nVue.use(Acl, user, (acl) => {\r\n  acl.policy(PostPolicy, Post)\r\n})\r\n```\r\n\r\nYou can also \"new\" the policy if you need to pass anything to the constructor. Basically if it is a function it will invoke it (classes are functions) and if it is object is it will use it as is. Same for for rules in the policy. They can be both \"flat\" parameters or functions."}}
{"actor":{"display_login":"mblarsen"}}