{"action":"created","comment":{"url":"https://api.github.com/repos/nginth/c2c_comm/pulls/comments/184895385","pull_request_review_id":116178862,"id":184895385,"diff_hunk":"@@ -51,7 +51,8 @@ class AppFrame extends Component {\n \n   onSignIn(status, data) {\n     this.setState({loggedIn: status, userData: data});\n-    if (data.basic.username == \"adminacc\") {this.setState({admin: true})};\n+    // Needs to be set back to False when someone signs in that is not an admin if an admin has previously signed in\n+    data.admin ? this.setState({admin: true}) : this.setState({admin: false});","path":"src/App.js","position":null,"original_position":6,"commit_id":"79571f8c517b001efa0e081cdb2ccefd7b1a5deb","original_commit_id":"79571f8c517b001efa0e081cdb2ccefd7b1a5deb","user":{"login":"AswaggyP","id":12235790,"avatar_url":"https://avatars0.githubusercontent.com/u/12235790?v=4","gravatar_id":"","url":"https://api.github.com/users/AswaggyP","html_url":"https://github.com/AswaggyP","followers_url":"https://api.github.com/users/AswaggyP/followers","following_url":"https://api.github.com/users/AswaggyP/following{/other_user}","gists_url":"https://api.github.com/users/AswaggyP/gists{/gist_id}","starred_url":"https://api.github.com/users/AswaggyP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AswaggyP/subscriptions","organizations_url":"https://api.github.com/users/AswaggyP/orgs","repos_url":"https://api.github.com/users/AswaggyP/repos","events_url":"https://api.github.com/users/AswaggyP/events{/privacy}","received_events_url":"https://api.github.com/users/AswaggyP/received_events","type":"User","site_admin":false},"body":"Since state updates are asynchronous, we may want to determine this beforehand and set the state only once in this function. ","created_at":"2018-04-29T21:19:38Z","updated_at":"2018-04-29T21:25:20Z","html_url":"https://github.com/nginth/c2c_comm/pull/2#discussion_r184895385","pull_request_url":"https://api.github.com/repos/nginth/c2c_comm/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/nginth/c2c_comm/pulls/comments/184895385"},"html":{"href":"https://github.com/nginth/c2c_comm/pull/2#discussion_r184895385"},"pull_request":{"href":"https://api.github.com/repos/nginth/c2c_comm/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nginth/c2c_comm/pulls/2","id":184670471,"html_url":"https://github.com/nginth/c2c_comm/pull/2","diff_url":"https://github.com/nginth/c2c_comm/pull/2.diff","patch_url":"https://github.com/nginth/c2c_comm/pull/2.patch","issue_url":"https://api.github.com/repos/nginth/c2c_comm/issues/2","number":2,"state":"open","locked":false,"title":"Added admin dashboard","user":{"login":"shrimptoast12","id":17185532,"avatar_url":"https://avatars3.githubusercontent.com/u/17185532?v=4","gravatar_id":"","url":"https://api.github.com/users/shrimptoast12","html_url":"https://github.com/shrimptoast12","followers_url":"https://api.github.com/users/shrimptoast12/followers","following_url":"https://api.github.com/users/shrimptoast12/following{/other_user}","gists_url":"https://api.github.com/users/shrimptoast12/gists{/gist_id}","starred_url":"https://api.github.com/users/shrimptoast12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrimptoast12/subscriptions","organizations_url":"https://api.github.com/users/shrimptoast12/orgs","repos_url":"https://api.github.com/users/shrimptoast12/repos","events_url":"https://api.github.com/users/shrimptoast12/events{/privacy}","received_events_url":"https://api.github.com/users/shrimptoast12/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-27T16:31:21Z","updated_at":"2018-04-29T21:25:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b95e34ed5312e1e3f25b5ff04791c3cc5a79e09a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nginth/c2c_comm/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nginth/c2c_comm/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nginth/c2c_comm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nginth/c2c_comm/issues/2/comments","statuses_url":"https://api.github.com/repos/nginth/c2c_comm/statuses/79571f8c517b001efa0e081cdb2ccefd7b1a5deb","head":{"label":"nginth:vietDev","ref":"vietDev","sha":"79571f8c517b001efa0e081cdb2ccefd7b1a5deb","user":{"login":"nginth","id":1570111,"avatar_url":"https://avatars3.githubusercontent.com/u/1570111?v=4","gravatar_id":"","url":"https://api.github.com/users/nginth","html_url":"https://github.com/nginth","followers_url":"https://api.github.com/users/nginth/followers","following_url":"https://api.github.com/users/nginth/following{/other_user}","gists_url":"https://api.github.com/users/nginth/gists{/gist_id}","starred_url":"https://api.github.com/users/nginth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nginth/subscriptions","organizations_url":"https://api.github.com/users/nginth/orgs","repos_url":"https://api.github.com/users/nginth/repos","events_url":"https://api.github.com/users/nginth/events{/privacy}","received_events_url":"https://api.github.com/users/nginth/received_events","type":"User","site_admin":false},"repo":{"id":123641274,"name":"c2c_comm","full_name":"nginth/c2c_comm","owner":{"login":"nginth","id":1570111,"avatar_url":"https://avatars3.githubusercontent.com/u/1570111?v=4","gravatar_id":"","url":"https://api.github.com/users/nginth","html_url":"https://github.com/nginth","followers_url":"https://api.github.com/users/nginth/followers","following_url":"https://api.github.com/users/nginth/following{/other_user}","gists_url":"https://api.github.com/users/nginth/gists{/gist_id}","starred_url":"https://api.github.com/users/nginth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nginth/subscriptions","organizations_url":"https://api.github.com/users/nginth/orgs","repos_url":"https://api.github.com/users/nginth/repos","events_url":"https://api.github.com/users/nginth/events{/privacy}","received_events_url":"https://api.github.com/users/nginth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nginth/c2c_comm","description":null,"fork":false,"url":"https://api.github.com/repos/nginth/c2c_comm","forks_url":"https://api.github.com/repos/nginth/c2c_comm/forks","keys_url":"https://api.github.com/repos/nginth/c2c_comm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nginth/c2c_comm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nginth/c2c_comm/teams","hooks_url":"https://api.github.com/repos/nginth/c2c_comm/hooks","issue_events_url":"https://api.github.com/repos/nginth/c2c_comm/issues/events{/number}","events_url":"https://api.github.com/repos/nginth/c2c_comm/events","assignees_url":"https://api.github.com/repos/nginth/c2c_comm/assignees{/user}","branches_url":"https://api.github.com/repos/nginth/c2c_comm/branches{/branch}","tags_url":"https://api.github.com/repos/nginth/c2c_comm/tags","blobs_url":"https://api.github.com/repos/nginth/c2c_comm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nginth/c2c_comm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nginth/c2c_comm/git/refs{/sha}","trees_url":"https://api.github.com/repos/nginth/c2c_comm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nginth/c2c_comm/statuses/{sha}","languages_url":"https://api.github.com/repos/nginth/c2c_comm/languages","stargazers_url":"https://api.github.com/repos/nginth/c2c_comm/stargazers","contributors_url":"https://api.github.com/repos/nginth/c2c_comm/contributors","subscribers_url":"https://api.github.com/repos/nginth/c2c_comm/subscribers","subscription_url":"https://api.github.com/repos/nginth/c2c_comm/subscription","commits_url":"https://api.github.com/repos/nginth/c2c_comm/commits{/sha}","git_commits_url":"https://api.github.com/repos/nginth/c2c_comm/git/commits{/sha}","comments_url":"https://api.github.com/repos/nginth/c2c_comm/comments{/number}","issue_comment_url":"https://api.github.com/repos/nginth/c2c_comm/issues/comments{/number}","contents_url":"https://api.github.com/repos/nginth/c2c_comm/contents/{+path}","compare_url":"https://api.github.com/repos/nginth/c2c_comm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nginth/c2c_comm/merges","archive_url":"https://api.github.com/repos/nginth/c2c_comm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nginth/c2c_comm/downloads","issues_url":"https://api.github.com/repos/nginth/c2c_comm/issues{/number}","pulls_url":"https://api.github.com/repos/nginth/c2c_comm/pulls{/number}","milestones_url":"https://api.github.com/repos/nginth/c2c_comm/milestones{/number}","notifications_url":"https://api.github.com/repos/nginth/c2c_comm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nginth/c2c_comm/labels{/name}","releases_url":"https://api.github.com/repos/nginth/c2c_comm/releases{/id}","deployments_url":"https://api.github.com/repos/nginth/c2c_comm/deployments","created_at":"2018-03-02T23:23:29Z","updated_at":"2018-04-22T19:08:14Z","pushed_at":"2018-04-28T02:36:56Z","git_url":"git://github.com/nginth/c2c_comm.git","ssh_url":"git@github.com:nginth/c2c_comm.git","clone_url":"https://github.com/nginth/c2c_comm.git","svn_url":"https://github.com/nginth/c2c_comm","homepage":null,"size":34246,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"nginth:master","ref":"master","sha":"e3e8f1311df2032f0fba8b8963748d7c780a3349","user":{"login":"nginth","id":1570111,"avatar_url":"https://avatars3.githubusercontent.com/u/1570111?v=4","gravatar_id":"","url":"https://api.github.com/users/nginth","html_url":"https://github.com/nginth","followers_url":"https://api.github.com/users/nginth/followers","following_url":"https://api.github.com/users/nginth/following{/other_user}","gists_url":"https://api.github.com/users/nginth/gists{/gist_id}","starred_url":"https://api.github.com/users/nginth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nginth/subscriptions","organizations_url":"https://api.github.com/users/nginth/orgs","repos_url":"https://api.github.com/users/nginth/repos","events_url":"https://api.github.com/users/nginth/events{/privacy}","received_events_url":"https://api.github.com/users/nginth/received_events","type":"User","site_admin":false},"repo":{"id":123641274,"name":"c2c_comm","full_name":"nginth/c2c_comm","owner":{"login":"nginth","id":1570111,"avatar_url":"https://avatars3.githubusercontent.com/u/1570111?v=4","gravatar_id":"","url":"https://api.github.com/users/nginth","html_url":"https://github.com/nginth","followers_url":"https://api.github.com/users/nginth/followers","following_url":"https://api.github.com/users/nginth/following{/other_user}","gists_url":"https://api.github.com/users/nginth/gists{/gist_id}","starred_url":"https://api.github.com/users/nginth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nginth/subscriptions","organizations_url":"https://api.github.com/users/nginth/orgs","repos_url":"https://api.github.com/users/nginth/repos","events_url":"https://api.github.com/users/nginth/events{/privacy}","received_events_url":"https://api.github.com/users/nginth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nginth/c2c_comm","description":null,"fork":false,"url":"https://api.github.com/repos/nginth/c2c_comm","forks_url":"https://api.github.com/repos/nginth/c2c_comm/forks","keys_url":"https://api.github.com/repos/nginth/c2c_comm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nginth/c2c_comm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nginth/c2c_comm/teams","hooks_url":"https://api.github.com/repos/nginth/c2c_comm/hooks","issue_events_url":"https://api.github.com/repos/nginth/c2c_comm/issues/events{/number}","events_url":"https://api.github.com/repos/nginth/c2c_comm/events","assignees_url":"https://api.github.com/repos/nginth/c2c_comm/assignees{/user}","branches_url":"https://api.github.com/repos/nginth/c2c_comm/branches{/branch}","tags_url":"https://api.github.com/repos/nginth/c2c_comm/tags","blobs_url":"https://api.github.com/repos/nginth/c2c_comm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nginth/c2c_comm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nginth/c2c_comm/git/refs{/sha}","trees_url":"https://api.github.com/repos/nginth/c2c_comm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nginth/c2c_comm/statuses/{sha}","languages_url":"https://api.github.com/repos/nginth/c2c_comm/languages","stargazers_url":"https://api.github.com/repos/nginth/c2c_comm/stargazers","contributors_url":"https://api.github.com/repos/nginth/c2c_comm/contributors","subscribers_url":"https://api.github.com/repos/nginth/c2c_comm/subscribers","subscription_url":"https://api.github.com/repos/nginth/c2c_comm/subscription","commits_url":"https://api.github.com/repos/nginth/c2c_comm/commits{/sha}","git_commits_url":"https://api.github.com/repos/nginth/c2c_comm/git/commits{/sha}","comments_url":"https://api.github.com/repos/nginth/c2c_comm/comments{/number}","issue_comment_url":"https://api.github.com/repos/nginth/c2c_comm/issues/comments{/number}","contents_url":"https://api.github.com/repos/nginth/c2c_comm/contents/{+path}","compare_url":"https://api.github.com/repos/nginth/c2c_comm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nginth/c2c_comm/merges","archive_url":"https://api.github.com/repos/nginth/c2c_comm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nginth/c2c_comm/downloads","issues_url":"https://api.github.com/repos/nginth/c2c_comm/issues{/number}","pulls_url":"https://api.github.com/repos/nginth/c2c_comm/pulls{/number}","milestones_url":"https://api.github.com/repos/nginth/c2c_comm/milestones{/number}","notifications_url":"https://api.github.com/repos/nginth/c2c_comm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nginth/c2c_comm/labels{/name}","releases_url":"https://api.github.com/repos/nginth/c2c_comm/releases{/id}","deployments_url":"https://api.github.com/repos/nginth/c2c_comm/deployments","created_at":"2018-03-02T23:23:29Z","updated_at":"2018-04-22T19:08:14Z","pushed_at":"2018-04-28T02:36:56Z","git_url":"git://github.com/nginth/c2c_comm.git","ssh_url":"git@github.com:nginth/c2c_comm.git","clone_url":"https://github.com/nginth/c2c_comm.git","svn_url":"https://github.com/nginth/c2c_comm","homepage":null,"size":34246,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nginth/c2c_comm/pulls/2"},"html":{"href":"https://github.com/nginth/c2c_comm/pull/2"},"issue":{"href":"https://api.github.com/repos/nginth/c2c_comm/issues/2"},"comments":{"href":"https://api.github.com/repos/nginth/c2c_comm/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nginth/c2c_comm/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nginth/c2c_comm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nginth/c2c_comm/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nginth/c2c_comm/statuses/79571f8c517b001efa0e081cdb2ccefd7b1a5deb"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"AswaggyP"}}