{"action":"opened","issue":{"url":"https://api.github.com/repos/OptimalBits/node_acl/issues/218","repository_url":"https://api.github.com/repos/OptimalBits/node_acl","labels_url":"https://api.github.com/repos/OptimalBits/node_acl/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/OptimalBits/node_acl/issues/218/comments","events_url":"https://api.github.com/repos/OptimalBits/node_acl/issues/218/events","html_url":"https://github.com/OptimalBits/node_acl/issues/218","id":192235362,"number":218,"title":"isAllowed returns empty permission","user":{"login":"macroramesh6","id":1827233,"avatar_url":"https://avatars.githubusercontent.com/u/1827233?v=3","gravatar_id":"","url":"https://api.github.com/users/macroramesh6","html_url":"https://github.com/macroramesh6","followers_url":"https://api.github.com/users/macroramesh6/followers","following_url":"https://api.github.com/users/macroramesh6/following{/other_user}","gists_url":"https://api.github.com/users/macroramesh6/gists{/gist_id}","starred_url":"https://api.github.com/users/macroramesh6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macroramesh6/subscriptions","organizations_url":"https://api.github.com/users/macroramesh6/orgs","repos_url":"https://api.github.com/users/macroramesh6/repos","events_url":"https://api.github.com/users/macroramesh6/events{/privacy}","received_events_url":"https://api.github.com/users/macroramesh6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-29T09:54:23Z","updated_at":"2016-11-29T09:54:23Z","closed_at":null,"body":"Thanks for the contribution for this package. I am new to this package I have added roles, resource, and permission. If I tried to use `isAllowed` returns null permission. my implementation is given below. \r\n\r\n````\r\n//added roles, resource and permissions here\r\nacl.allow('employee', '/api/guestbook', ['put']);\r\n\r\n//added roles to the user\r\nacl.addUserRoles('58344ca87f75a7306fc67645', 'employee', function(err) {\r\n});\r\n\r\n//Here my custom middleware check.\r\nacl.isAllowed('58344ca87f75a7306fc67645', '/api/guestbook', 'put', function(err, allowed){\r\n    console.log(err, allowed); //null, false\r\n});\r\n````\r\n\r\nMy above check returns `null, false` it should be `null, true`. Did I miss anything in my implementation? am I on the right path?\r\n\r\n"}}
{"actor":{"display_login":"macroramesh6"}}