{"action":"created","comment":{"url":"https://api.github.com/repos/carolynyoo/stack_store/pulls/comments/29545353","id":29545353,"diff_hunk":"@@ -10,7 +10,8 @@ app.directive('navbar', function ($rootScope, AuthService, AUTH_EVENTS, $state)\n             scope.items = [\n                 { label: 'Home', state: 'home' },\n                 { label: 'Cart', state: 'cart' },\n-                { label: 'Your Account', state: 'yourAccount', auth: true }\n+                { label: 'Your Account', state: 'yourAccount', auth: true },\n+                // { label: 'Admin', state: 'admin', auth: true }","path":"browser/js/common/directives/navbar/navbar.js","position":6,"original_position":6,"commit_id":"0c70dbb3776fc619a1d47581e8b9687c0e5cb915","original_commit_id":"0c70dbb3776fc619a1d47581e8b9687c0e5cb915","user":{"login":"alexyuningliu","id":2261842,"avatar_url":"https://avatars.githubusercontent.com/u/2261842?v=3","gravatar_id":"","url":"https://api.github.com/users/alexyuningliu","html_url":"https://github.com/alexyuningliu","followers_url":"https://api.github.com/users/alexyuningliu/followers","following_url":"https://api.github.com/users/alexyuningliu/following{/other_user}","gists_url":"https://api.github.com/users/alexyuningliu/gists{/gist_id}","starred_url":"https://api.github.com/users/alexyuningliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexyuningliu/subscriptions","organizations_url":"https://api.github.com/users/alexyuningliu/orgs","repos_url":"https://api.github.com/users/alexyuningliu/repos","events_url":"https://api.github.com/users/alexyuningliu/events{/privacy}","received_events_url":"https://api.github.com/users/alexyuningliu/received_events","type":"User","site_admin":false},"body":"Actually nvm, I see what you did up there :)","created_at":"2015-05-02T05:33:05Z","updated_at":"2015-05-02T05:33:05Z","html_url":"https://github.com/carolynyoo/stack_store/pull/85#discussion_r29545353","pull_request_url":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/carolynyoo/stack_store/pulls/comments/29545353"},"html":{"href":"https://github.com/carolynyoo/stack_store/pull/85#discussion_r29545353"},"pull_request":{"href":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85","id":34325604,"html_url":"https://github.com/carolynyoo/stack_store/pull/85","diff_url":"https://github.com/carolynyoo/stack_store/pull/85.diff","patch_url":"https://github.com/carolynyoo/stack_store/pull/85.patch","issue_url":"https://api.github.com/repos/carolynyoo/stack_store/issues/85","number":85,"state":"open","locked":false,"title":"Admin db & route setup","user":{"login":"carolynyoo","id":8825278,"avatar_url":"https://avatars.githubusercontent.com/u/8825278?v=3","gravatar_id":"","url":"https://api.github.com/users/carolynyoo","html_url":"https://github.com/carolynyoo","followers_url":"https://api.github.com/users/carolynyoo/followers","following_url":"https://api.github.com/users/carolynyoo/following{/other_user}","gists_url":"https://api.github.com/users/carolynyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynyoo/subscriptions","organizations_url":"https://api.github.com/users/carolynyoo/orgs","repos_url":"https://api.github.com/users/carolynyoo/repos","events_url":"https://api.github.com/users/carolynyoo/events{/privacy}","received_events_url":"https://api.github.com/users/carolynyoo/received_events","type":"User","site_admin":false},"body":"![admin-setup](https://cloud.githubusercontent.com/assets/8825278/7425676/95967fb4-ef83-11e4-80a6-8bcfdb2668a0.gif)\r\n\r\nGot admin view to show for the right type of user (if they have admin: true property in db). \r\n\r\n- Try going to /admin without being logged in: goes to /login\r\n- Log in as obama :us: . Go to /admin, works (placeholder 'puppiez')\r\n- Log in as testing@fsa, not an admin. Go to /admin, get nothing. ","created_at":"2015-04-29T00:43:39Z","updated_at":"2015-05-02T05:33:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b43cc2f463a64ed2a87f30f265e6c44a3c35b90","assignee":{"login":"carolynyoo","id":8825278,"avatar_url":"https://avatars.githubusercontent.com/u/8825278?v=3","gravatar_id":"","url":"https://api.github.com/users/carolynyoo","html_url":"https://github.com/carolynyoo","followers_url":"https://api.github.com/users/carolynyoo/followers","following_url":"https://api.github.com/users/carolynyoo/following{/other_user}","gists_url":"https://api.github.com/users/carolynyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynyoo/subscriptions","organizations_url":"https://api.github.com/users/carolynyoo/orgs","repos_url":"https://api.github.com/users/carolynyoo/repos","events_url":"https://api.github.com/users/carolynyoo/events{/privacy}","received_events_url":"https://api.github.com/users/carolynyoo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85/commits","review_comments_url":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85/comments","review_comment_url":"https://api.github.com/repos/carolynyoo/stack_store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carolynyoo/stack_store/issues/85/comments","statuses_url":"https://api.github.com/repos/carolynyoo/stack_store/statuses/0c70dbb3776fc619a1d47581e8b9687c0e5cb915","head":{"label":"carolynyoo:admin-setup","ref":"admin-setup","sha":"0c70dbb3776fc619a1d47581e8b9687c0e5cb915","user":{"login":"carolynyoo","id":8825278,"avatar_url":"https://avatars.githubusercontent.com/u/8825278?v=3","gravatar_id":"","url":"https://api.github.com/users/carolynyoo","html_url":"https://github.com/carolynyoo","followers_url":"https://api.github.com/users/carolynyoo/followers","following_url":"https://api.github.com/users/carolynyoo/following{/other_user}","gists_url":"https://api.github.com/users/carolynyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynyoo/subscriptions","organizations_url":"https://api.github.com/users/carolynyoo/orgs","repos_url":"https://api.github.com/users/carolynyoo/repos","events_url":"https://api.github.com/users/carolynyoo/events{/privacy}","received_events_url":"https://api.github.com/users/carolynyoo/received_events","type":"User","site_admin":false},"repo":{"id":34169303,"name":"stack_store","full_name":"carolynyoo/stack_store","owner":{"login":"carolynyoo","id":8825278,"avatar_url":"https://avatars.githubusercontent.com/u/8825278?v=3","gravatar_id":"","url":"https://api.github.com/users/carolynyoo","html_url":"https://github.com/carolynyoo","followers_url":"https://api.github.com/users/carolynyoo/followers","following_url":"https://api.github.com/users/carolynyoo/following{/other_user}","gists_url":"https://api.github.com/users/carolynyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynyoo/subscriptions","organizations_url":"https://api.github.com/users/carolynyoo/orgs","repos_url":"https://api.github.com/users/carolynyoo/repos","events_url":"https://api.github.com/users/carolynyoo/events{/privacy}","received_events_url":"https://api.github.com/users/carolynyoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carolynyoo/stack_store","description":"Movie ecommerce platform (MEAN stack)","fork":false,"url":"https://api.github.com/repos/carolynyoo/stack_store","forks_url":"https://api.github.com/repos/carolynyoo/stack_store/forks","keys_url":"https://api.github.com/repos/carolynyoo/stack_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carolynyoo/stack_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carolynyoo/stack_store/teams","hooks_url":"https://api.github.com/repos/carolynyoo/stack_store/hooks","issue_events_url":"https://api.github.com/repos/carolynyoo/stack_store/issues/events{/number}","events_url":"https://api.github.com/repos/carolynyoo/stack_store/events","assignees_url":"https://api.github.com/repos/carolynyoo/stack_store/assignees{/user}","branches_url":"https://api.github.com/repos/carolynyoo/stack_store/branches{/branch}","tags_url":"https://api.github.com/repos/carolynyoo/stack_store/tags","blobs_url":"https://api.github.com/repos/carolynyoo/stack_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carolynyoo/stack_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carolynyoo/stack_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/carolynyoo/stack_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carolynyoo/stack_store/statuses/{sha}","languages_url":"https://api.github.com/repos/carolynyoo/stack_store/languages","stargazers_url":"https://api.github.com/repos/carolynyoo/stack_store/stargazers","contributors_url":"https://api.github.com/repos/carolynyoo/stack_store/contributors","subscribers_url":"https://api.github.com/repos/carolynyoo/stack_store/subscribers","subscription_url":"https://api.github.com/repos/carolynyoo/stack_store/subscription","commits_url":"https://api.github.com/repos/carolynyoo/stack_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/carolynyoo/stack_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/carolynyoo/stack_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/carolynyoo/stack_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/carolynyoo/stack_store/contents/{+path}","compare_url":"https://api.github.com/repos/carolynyoo/stack_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carolynyoo/stack_store/merges","archive_url":"https://api.github.com/repos/carolynyoo/stack_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carolynyoo/stack_store/downloads","issues_url":"https://api.github.com/repos/carolynyoo/stack_store/issues{/number}","pulls_url":"https://api.github.com/repos/carolynyoo/stack_store/pulls{/number}","milestones_url":"https://api.github.com/repos/carolynyoo/stack_store/milestones{/number}","notifications_url":"https://api.github.com/repos/carolynyoo/stack_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carolynyoo/stack_store/labels{/name}","releases_url":"https://api.github.com/repos/carolynyoo/stack_store/releases{/id}","created_at":"2015-04-18T14:41:28Z","updated_at":"2015-05-01T02:06:47Z","pushed_at":"2015-05-02T05:21:06Z","git_url":"git://github.com/carolynyoo/stack_store.git","ssh_url":"git@github.com:carolynyoo/stack_store.git","clone_url":"https://github.com/carolynyoo/stack_store.git","svn_url":"https://github.com/carolynyoo/stack_store","homepage":"","size":744,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":28,"forks":0,"open_issues":28,"watchers":1,"default_branch":"master"}},"base":{"label":"carolynyoo:master","ref":"master","sha":"ac5320b534ffe673ca44b0745aff7facda0ad911","user":{"login":"carolynyoo","id":8825278,"avatar_url":"https://avatars.githubusercontent.com/u/8825278?v=3","gravatar_id":"","url":"https://api.github.com/users/carolynyoo","html_url":"https://github.com/carolynyoo","followers_url":"https://api.github.com/users/carolynyoo/followers","following_url":"https://api.github.com/users/carolynyoo/following{/other_user}","gists_url":"https://api.github.com/users/carolynyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynyoo/subscriptions","organizations_url":"https://api.github.com/users/carolynyoo/orgs","repos_url":"https://api.github.com/users/carolynyoo/repos","events_url":"https://api.github.com/users/carolynyoo/events{/privacy}","received_events_url":"https://api.github.com/users/carolynyoo/received_events","type":"User","site_admin":false},"repo":{"id":34169303,"name":"stack_store","full_name":"carolynyoo/stack_store","owner":{"login":"carolynyoo","id":8825278,"avatar_url":"https://avatars.githubusercontent.com/u/8825278?v=3","gravatar_id":"","url":"https://api.github.com/users/carolynyoo","html_url":"https://github.com/carolynyoo","followers_url":"https://api.github.com/users/carolynyoo/followers","following_url":"https://api.github.com/users/carolynyoo/following{/other_user}","gists_url":"https://api.github.com/users/carolynyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynyoo/subscriptions","organizations_url":"https://api.github.com/users/carolynyoo/orgs","repos_url":"https://api.github.com/users/carolynyoo/repos","events_url":"https://api.github.com/users/carolynyoo/events{/privacy}","received_events_url":"https://api.github.com/users/carolynyoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carolynyoo/stack_store","description":"Movie ecommerce platform (MEAN stack)","fork":false,"url":"https://api.github.com/repos/carolynyoo/stack_store","forks_url":"https://api.github.com/repos/carolynyoo/stack_store/forks","keys_url":"https://api.github.com/repos/carolynyoo/stack_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carolynyoo/stack_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carolynyoo/stack_store/teams","hooks_url":"https://api.github.com/repos/carolynyoo/stack_store/hooks","issue_events_url":"https://api.github.com/repos/carolynyoo/stack_store/issues/events{/number}","events_url":"https://api.github.com/repos/carolynyoo/stack_store/events","assignees_url":"https://api.github.com/repos/carolynyoo/stack_store/assignees{/user}","branches_url":"https://api.github.com/repos/carolynyoo/stack_store/branches{/branch}","tags_url":"https://api.github.com/repos/carolynyoo/stack_store/tags","blobs_url":"https://api.github.com/repos/carolynyoo/stack_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carolynyoo/stack_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carolynyoo/stack_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/carolynyoo/stack_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carolynyoo/stack_store/statuses/{sha}","languages_url":"https://api.github.com/repos/carolynyoo/stack_store/languages","stargazers_url":"https://api.github.com/repos/carolynyoo/stack_store/stargazers","contributors_url":"https://api.github.com/repos/carolynyoo/stack_store/contributors","subscribers_url":"https://api.github.com/repos/carolynyoo/stack_store/subscribers","subscription_url":"https://api.github.com/repos/carolynyoo/stack_store/subscription","commits_url":"https://api.github.com/repos/carolynyoo/stack_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/carolynyoo/stack_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/carolynyoo/stack_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/carolynyoo/stack_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/carolynyoo/stack_store/contents/{+path}","compare_url":"https://api.github.com/repos/carolynyoo/stack_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carolynyoo/stack_store/merges","archive_url":"https://api.github.com/repos/carolynyoo/stack_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carolynyoo/stack_store/downloads","issues_url":"https://api.github.com/repos/carolynyoo/stack_store/issues{/number}","pulls_url":"https://api.github.com/repos/carolynyoo/stack_store/pulls{/number}","milestones_url":"https://api.github.com/repos/carolynyoo/stack_store/milestones{/number}","notifications_url":"https://api.github.com/repos/carolynyoo/stack_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carolynyoo/stack_store/labels{/name}","releases_url":"https://api.github.com/repos/carolynyoo/stack_store/releases{/id}","created_at":"2015-04-18T14:41:28Z","updated_at":"2015-05-01T02:06:47Z","pushed_at":"2015-05-02T05:21:06Z","git_url":"git://github.com/carolynyoo/stack_store.git","ssh_url":"git@github.com:carolynyoo/stack_store.git","clone_url":"https://github.com/carolynyoo/stack_store.git","svn_url":"https://github.com/carolynyoo/stack_store","homepage":"","size":744,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":28,"forks":0,"open_issues":28,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85"},"html":{"href":"https://github.com/carolynyoo/stack_store/pull/85"},"issue":{"href":"https://api.github.com/repos/carolynyoo/stack_store/issues/85"},"comments":{"href":"https://api.github.com/repos/carolynyoo/stack_store/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/carolynyoo/stack_store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carolynyoo/stack_store/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/carolynyoo/stack_store/statuses/0c70dbb3776fc619a1d47581e8b9687c0e5cb915"}}}}