{"action":"opened","issue":{"url":"https://api.github.com/repos/beeman/loopback-angular-admin/issues/46","labels_url":"https://api.github.com/repos/beeman/loopback-angular-admin/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/beeman/loopback-angular-admin/issues/46/comments","events_url":"https://api.github.com/repos/beeman/loopback-angular-admin/issues/46/events","html_url":"https://github.com/beeman/loopback-angular-admin/issues/46","id":56191632,"number":46,"title":"acls","user":{"login":"vdphuong","id":3284563,"avatar_url":"https://avatars.githubusercontent.com/u/3284563?v=3","gravatar_id":"","url":"https://api.github.com/users/vdphuong","html_url":"https://github.com/vdphuong","followers_url":"https://api.github.com/users/vdphuong/followers","following_url":"https://api.github.com/users/vdphuong/following{/other_user}","gists_url":"https://api.github.com/users/vdphuong/gists{/gist_id}","starred_url":"https://api.github.com/users/vdphuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdphuong/subscriptions","organizations_url":"https://api.github.com/users/vdphuong/orgs","repos_url":"https://api.github.com/users/vdphuong/repos","events_url":"https://api.github.com/users/vdphuong/events{/privacy}","received_events_url":"https://api.github.com/users/vdphuong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-02T03:12:52Z","updated_at":"2015-02-02T03:12:52Z","closed_at":null,"body":"i chage acls in event.json file to: \r\n\r\n{\r\n      \"accessType\": \"*\",\r\n      \"principalType\": \"ROLE\",\r\n      \"principalId\": \"$everyone\",\r\n      \"permission\": \"DENY\"\r\n    },\r\n    {\r\n      \"accessType\": \"*\",\r\n      \"principalType\": \"ROLE\",\r\n      \"principalId\": \"admin\",\r\n      \"permission\": \"ALLOW\"\r\n    },\r\n    {\r\n      \"accessType\": \"READ\",\r\n      \"principalType\": \"ROLE\",\r\n      \"principalId\": \"$authenticated\",\r\n      \"permission\": \"ALLOW\"\r\n    }\r\n\r\nafter login http://localhost:3333/#/login with username and password \r\nhttp://localhost:3333/#/app/events -> 0k.\r\nhttp://localhost:3333/api/events ->\r\n\r\n{\"error\":{\"name\":\"Error\",\"status\":401,\"message\":\"Authorization Required\",\"statusCode\":401,\"code\":\"AUTHORIZATION_REQUIRED\",\"stack\":\"Error: Authorization Required\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\loopback\\\\lib\\\\application.js:344:21\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\loopback\\\\lib\\\\model.js:295:5\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\loopback\\\\common\\\\models\\\\acl.js:437:23\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\async\\\\lib\\\\async.js:254:17\\n    at done (C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\async\\\\lib\\\\async.js:135:19)\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\async\\\\lib\\\\async.js:32:16\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\async\\\\lib\\\\async.js:251:21\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\async\\\\lib\\\\async.js:575:34\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\loopback\\\\common\\\\models\\\\acl.js:420:17\\n    at C:\\\\Users\\\\VDP\\\\Desktop\\\\admin\\\\node_modules\\\\loopback\\\\common\\\\models\\\\role.js:207:21\"}}\r\n "}}