{"action":"created","issue":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/255","repository_url":"https://api.github.com/repos/Narzerus/angular-permission","labels_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/255/comments","events_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/255/events","html_url":"https://github.com/Narzerus/angular-permission/issues/255","id":156164902,"number":255,"title":"Permission directive do not take permission-only/permisssion-except","user":{"login":"nmorenor","id":11303670,"avatar_url":"https://avatars.githubusercontent.com/u/11303670?v=3","gravatar_id":"","url":"https://api.github.com/users/nmorenor","html_url":"https://github.com/nmorenor","followers_url":"https://api.github.com/users/nmorenor/followers","following_url":"https://api.github.com/users/nmorenor/following{/other_user}","gists_url":"https://api.github.com/users/nmorenor/gists{/gist_id}","starred_url":"https://api.github.com/users/nmorenor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmorenor/subscriptions","organizations_url":"https://api.github.com/users/nmorenor/orgs","repos_url":"https://api.github.com/users/nmorenor/repos","events_url":"https://api.github.com/users/nmorenor/events{/privacy}","received_events_url":"https://api.github.com/users/nmorenor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-22T18:15:16Z","updated_at":"2016-05-24T19:02:33Z","closed_at":null,"body":"Hey, \r\n\r\nI'm a bit new to Angular and been using \"angular-permission\" for a personal project, while working with it I have recently updated to 2.3.8, I'm close to feature complete and I would not like to break something because of going to latest 3.0.x version. Although I found something funny with the permission directive, it was working perfectly fine on 2.2.4 and I see it not working on 2.3.8. I did a small change on it and I get it back to work, is this intentional or is it a bug, the line I moved was.\r\n\r\n``\r\nangular\r\n    .module('permission')\r\n    .directive('permission', ['$log', 'Authorization', 'PermissionMap', 'PermissionStrategies', function ($log, Authorization, PermissionMap, PermissionStrategies) {\r\n      return {\r\n        restrict: 'A',\r\n        bindToController: {\r\n``\r\n\r\nI just added scope:true, after restrict and it is now working.\r\n\r\nCheers\r\nIgnacio"},"comment":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/comments/221370731","html_url":"https://github.com/Narzerus/angular-permission/issues/255#issuecomment-221370731","issue_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/255","id":221370731,"user":{"login":"masterspambot","id":581121,"avatar_url":"https://avatars.githubusercontent.com/u/581121?v=3","gravatar_id":"","url":"https://api.github.com/users/masterspambot","html_url":"https://github.com/masterspambot","followers_url":"https://api.github.com/users/masterspambot/followers","following_url":"https://api.github.com/users/masterspambot/following{/other_user}","gists_url":"https://api.github.com/users/masterspambot/gists{/gist_id}","starred_url":"https://api.github.com/users/masterspambot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterspambot/subscriptions","organizations_url":"https://api.github.com/users/masterspambot/orgs","repos_url":"https://api.github.com/users/masterspambot/repos","events_url":"https://api.github.com/users/masterspambot/events{/privacy}","received_events_url":"https://api.github.com/users/masterspambot/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T19:02:33Z","updated_at":"2016-05-24T19:02:33Z","body":"And of course I recommend to migration to 3.x version as most of refactoring was done to provide modularization not to change library interface methods itself :)"}}
{"actor":{"display_login":"masterspambot"}}