{"action":"created","issue":{"url":"https://api.github.com/repos/JosephSilber/bouncer/issues/10","labels_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/10/comments","events_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/10/events","html_url":"https://github.com/JosephSilber/bouncer/issues/10","id":115518083,"number":10,"title":"Confused","user":{"login":"landjea","id":4738992,"avatar_url":"https://avatars.githubusercontent.com/u/4738992?v=3","gravatar_id":"","url":"https://api.github.com/users/landjea","html_url":"https://github.com/landjea","followers_url":"https://api.github.com/users/landjea/followers","following_url":"https://api.github.com/users/landjea/following{/other_user}","gists_url":"https://api.github.com/users/landjea/gists{/gist_id}","starred_url":"https://api.github.com/users/landjea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landjea/subscriptions","organizations_url":"https://api.github.com/users/landjea/orgs","repos_url":"https://api.github.com/users/landjea/repos","events_url":"https://api.github.com/users/landjea/events{/privacy}","received_events_url":"https://api.github.com/users/landjea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-06T14:45:59Z","updated_at":"2015-11-06T17:55:43Z","closed_at":"2015-11-06T17:55:43Z","body":"I noticed that you added the ability to edit a single item (\"post\" in your examples) but I am not sure how I would use it.\r\n\r\nUsing a typical \"forum\" example, I have 3 forums : general, specific, about. I want General-Admins to be able to edit/delete anything in General or Specifc. But I also have Specific-Admins and About-Admins.\r\n\r\nUsing the ability to edit single items, I can allow \"self\" to edit their own posts but how could I use the system to allow General-Admins, Specific Admins and About-Admins to have the ability to moderate any items under their forums(With General-Admins getting access to two forums)?\r\n\r\nWith the \"model\" permissions I could just create 3 rules ```(i.e. Bouncer::allow('General-Admin')->to('mod-general-forum');)``` for those roles...but I was just wondering how/if that would work with item specific ablities like ```Bouncer::allow($user)->to('edit', $general-forum-post);``` ? Can't seem to wrap my head around a way to do that using Bouncer. (Great product btw)"},"comment":{"url":"https://api.github.com/repos/JosephSilber/bouncer/issues/comments/154485581","html_url":"https://github.com/JosephSilber/bouncer/issues/10#issuecomment-154485581","issue_url":"https://api.github.com/repos/JosephSilber/bouncer/issues/10","id":154485581,"user":{"login":"landjea","id":4738992,"avatar_url":"https://avatars.githubusercontent.com/u/4738992?v=3","gravatar_id":"","url":"https://api.github.com/users/landjea","html_url":"https://github.com/landjea","followers_url":"https://api.github.com/users/landjea/followers","following_url":"https://api.github.com/users/landjea/following{/other_user}","gists_url":"https://api.github.com/users/landjea/gists{/gist_id}","starred_url":"https://api.github.com/users/landjea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landjea/subscriptions","organizations_url":"https://api.github.com/users/landjea/orgs","repos_url":"https://api.github.com/users/landjea/repos","events_url":"https://api.github.com/users/landjea/events{/privacy}","received_events_url":"https://api.github.com/users/landjea/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T17:55:43Z","updated_at":"2015-11-06T17:55:43Z","body":"I was trying to figure out how to write auth code solely with Bouncer (without the IF statement). Not sure *why* I thought Bouncer would/should be able to work without the IF statement but that was what I was trying to do. I am sorted now, I was mistakenly trying to do two jobs in one step."}}