{"action":"opened","issue":{"url":"https://api.github.com/repos/linnovate/meanio-circles/issues/5","repository_url":"https://api.github.com/repos/linnovate/meanio-circles","labels_url":"https://api.github.com/repos/linnovate/meanio-circles/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/linnovate/meanio-circles/issues/5/comments","events_url":"https://api.github.com/repos/linnovate/meanio-circles/issues/5/events","html_url":"https://github.com/linnovate/meanio-circles/issues/5","id":179670915,"number":5,"title":"Add dynamic circles check on frontend routes `requiredCircles`","user":{"login":"timelf123","id":2816999,"avatar_url":"https://avatars.githubusercontent.com/u/2816999?v=3","gravatar_id":"","url":"https://api.github.com/users/timelf123","html_url":"https://github.com/timelf123","followers_url":"https://api.github.com/users/timelf123/followers","following_url":"https://api.github.com/users/timelf123/following{/other_user}","gists_url":"https://api.github.com/users/timelf123/gists{/gist_id}","starred_url":"https://api.github.com/users/timelf123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timelf123/subscriptions","organizations_url":"https://api.github.com/users/timelf123/orgs","repos_url":"https://api.github.com/users/timelf123/repos","events_url":"https://api.github.com/users/timelf123/events{/privacy}","received_events_url":"https://api.github.com/users/timelf123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-28T03:17:22Z","updated_at":"2016-09-28T03:17:22Z","closed_at":null,"body":"In addition to taking an array, take a function or promise?\r\n```\r\nrequiredCircles : {\r\n  circles: ['admin'],\r\n  denyState: 'auth.login'\r\n}\r\n```\r\n```\r\nrequiredCircles : {\r\n  circles: loadCircles,\r\n  denyState: 'auth.login'\r\n}\r\n\r\nfunction loadCircles(Service) {\r\n  return Service.get(yourSearchObj).$promise;\r\n}\r\n```"}}
{"actor":{"display_login":"timelf123"}}