{"action":"created","issue":{"url":"https://api.github.com/repos/nicolaslopezj/roles/issues/5","labels_url":"https://api.github.com/repos/nicolaslopezj/roles/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/nicolaslopezj/roles/issues/5/comments","events_url":"https://api.github.com/repos/nicolaslopezj/roles/issues/5/events","html_url":"https://github.com/nicolaslopezj/roles/issues/5","id":81885967,"number":5,"title":"Multiple allow/ deny rules","user":{"login":"zimt28","id":1764689,"avatar_url":"https://avatars.githubusercontent.com/u/1764689?v=3","gravatar_id":"","url":"https://api.github.com/users/zimt28","html_url":"https://github.com/zimt28","followers_url":"https://api.github.com/users/zimt28/followers","following_url":"https://api.github.com/users/zimt28/following{/other_user}","gists_url":"https://api.github.com/users/zimt28/gists{/gist_id}","starred_url":"https://api.github.com/users/zimt28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimt28/subscriptions","organizations_url":"https://api.github.com/users/zimt28/orgs","repos_url":"https://api.github.com/users/zimt28/repos","events_url":"https://api.github.com/users/zimt28/events{/privacy}","received_events_url":"https://api.github.com/users/zimt28/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-28T11:22:51Z","updated_at":"2015-05-28T14:40:25Z","closed_at":"2015-05-28T14:40:25Z","body":"Thanks for this package, it's great!\r\n\r\nAt the moment it seems not possible to have multiple allow/ deny rules for one action.\r\nAs an example, if I have multiple deny rules, they will get ignored:\r\n```\r\nmyRole.deny('collection.insert', function () { return true; });\r\nmyRole.deny('collection.insert', function () { return true; });\r\n// Insert will pass\r\n```\r\n\r\nSo it would be great if we could set multiple allow/ deny rules. Any opinions?"},"comment":{"url":"https://api.github.com/repos/nicolaslopezj/roles/issues/comments/106365187","html_url":"https://github.com/nicolaslopezj/roles/issues/5#issuecomment-106365187","issue_url":"https://api.github.com/repos/nicolaslopezj/roles/issues/5","id":106365187,"user":{"login":"zimt28","id":1764689,"avatar_url":"https://avatars.githubusercontent.com/u/1764689?v=3","gravatar_id":"","url":"https://api.github.com/users/zimt28","html_url":"https://github.com/zimt28","followers_url":"https://api.github.com/users/zimt28/followers","following_url":"https://api.github.com/users/zimt28/following{/other_user}","gists_url":"https://api.github.com/users/zimt28/gists{/gist_id}","starred_url":"https://api.github.com/users/zimt28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimt28/subscriptions","organizations_url":"https://api.github.com/users/zimt28/orgs","repos_url":"https://api.github.com/users/zimt28/repos","events_url":"https://api.github.com/users/zimt28/events{/privacy}","received_events_url":"https://api.github.com/users/zimt28/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T14:40:25Z","updated_at":"2015-05-28T14:40:25Z","body":"Works now. Not sure what it was, but the problem disappeared as a re-structured my code.\r\nGreat package, thanks again!"}}