{"action":"created","comment":{"url":"https://api.github.com/repos/chpladmin/chpl-website/pulls/comments/105745921","pull_request_review_id":26628694,"id":105745921,"diff_hunk":"@@ -16,12 +16,16 @@\n         vm.inspectNonconformities = inspectNonconformities;\n         vm.save = save;\n         vm.sortRequirements = utilService.sortRequirements;\n+        vm.isChplAdmin = authService.isChplAdmin;\n+        vm.isAcbAdmin = authService.isAcbAdmin;\n+        vm.isAcbStaff = authService.isAcbStaff;\n \n         activate();\n \n         ////////////////////////////////////////////////////////////////////\n \n         function activate () {\n+        \tvm.authorities = ['ONC', 'ONC-ACB'];","path":"src/app/admin/components/surveillance/editSurveillance.controller.js","position":22,"original_position":22,"commit_id":"6da1c7d00fffe3f50078d25b698fddc435154251","original_commit_id":"89e841ef062efa9720ca5f36cd129fc4f3c08543","user":{"login":"andlar","id":909012,"avatar_url":"https://avatars0.githubusercontent.com/u/909012?v=3","gravatar_id":"","url":"https://api.github.com/users/andlar","html_url":"https://github.com/andlar","followers_url":"https://api.github.com/users/andlar/followers","following_url":"https://api.github.com/users/andlar/following{/other_user}","gists_url":"https://api.github.com/users/andlar/gists{/gist_id}","starred_url":"https://api.github.com/users/andlar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andlar/subscriptions","organizations_url":"https://api.github.com/users/andlar/orgs","repos_url":"https://api.github.com/users/andlar/repos","events_url":"https://api.github.com/users/andlar/events{/privacy}","received_events_url":"https://api.github.com/users/andlar/received_events","type":"User","site_admin":false},"body":"If this is the list of possible authorities for the user to choose from when picking their role I think this is incorrect. I think the select box should show all of the ROLEs the user has, and require them to choose between them","created_at":"2017-03-13T19:08:19Z","updated_at":"2017-03-13T19:29:38Z","html_url":"https://github.com/chpladmin/chpl-website/pull/106#discussion_r105745921","pull_request_url":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106","_links":{"self":{"href":"https://api.github.com/repos/chpladmin/chpl-website/pulls/comments/105745921"},"html":{"href":"https://github.com/chpladmin/chpl-website/pull/106#discussion_r105745921"},"pull_request":{"href":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106","id":110461492,"html_url":"https://github.com/chpladmin/chpl-website/pull/106","diff_url":"https://github.com/chpladmin/chpl-website/pull/106.diff","patch_url":"https://github.com/chpladmin/chpl-website/pull/106.patch","issue_url":"https://api.github.com/repos/chpladmin/chpl-website/issues/106","number":106,"state":"open","locked":false,"title":"OCD-1251: Display ROLE, allow selection on CREATE, authorize on edit/delete","user":{"login":"dlucas1","id":4240975,"avatar_url":"https://avatars0.githubusercontent.com/u/4240975?v=3","gravatar_id":"","url":"https://api.github.com/users/dlucas1","html_url":"https://github.com/dlucas1","followers_url":"https://api.github.com/users/dlucas1/followers","following_url":"https://api.github.com/users/dlucas1/following{/other_user}","gists_url":"https://api.github.com/users/dlucas1/gists{/gist_id}","starred_url":"https://api.github.com/users/dlucas1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlucas1/subscriptions","organizations_url":"https://api.github.com/users/dlucas1/orgs","repos_url":"https://api.github.com/users/dlucas1/repos","events_url":"https://api.github.com/users/dlucas1/events{/privacy}","received_events_url":"https://api.github.com/users/dlucas1/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-13T17:51:24Z","updated_at":"2017-03-13T19:29:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2fca19ec3f66159659a06e40188cc6428f4f230","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106/commits","review_comments_url":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106/comments","review_comment_url":"https://api.github.com/repos/chpladmin/chpl-website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chpladmin/chpl-website/issues/106/comments","statuses_url":"https://api.github.com/repos/chpladmin/chpl-website/statuses/6da1c7d00fffe3f50078d25b698fddc435154251","head":{"label":"dlucas1:OCD-1251","ref":"OCD-1251","sha":"6da1c7d00fffe3f50078d25b698fddc435154251","user":{"login":"dlucas1","id":4240975,"avatar_url":"https://avatars0.githubusercontent.com/u/4240975?v=3","gravatar_id":"","url":"https://api.github.com/users/dlucas1","html_url":"https://github.com/dlucas1","followers_url":"https://api.github.com/users/dlucas1/followers","following_url":"https://api.github.com/users/dlucas1/following{/other_user}","gists_url":"https://api.github.com/users/dlucas1/gists{/gist_id}","starred_url":"https://api.github.com/users/dlucas1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlucas1/subscriptions","organizations_url":"https://api.github.com/users/dlucas1/orgs","repos_url":"https://api.github.com/users/dlucas1/repos","events_url":"https://api.github.com/users/dlucas1/events{/privacy}","received_events_url":"https://api.github.com/users/dlucas1/received_events","type":"User","site_admin":false},"repo":{"id":63893116,"name":"chpl-website","full_name":"dlucas1/chpl-website","owner":{"login":"dlucas1","id":4240975,"avatar_url":"https://avatars0.githubusercontent.com/u/4240975?v=3","gravatar_id":"","url":"https://api.github.com/users/dlucas1","html_url":"https://github.com/dlucas1","followers_url":"https://api.github.com/users/dlucas1/followers","following_url":"https://api.github.com/users/dlucas1/following{/other_user}","gists_url":"https://api.github.com/users/dlucas1/gists{/gist_id}","starred_url":"https://api.github.com/users/dlucas1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlucas1/subscriptions","organizations_url":"https://api.github.com/users/dlucas1/orgs","repos_url":"https://api.github.com/users/dlucas1/repos","events_url":"https://api.github.com/users/dlucas1/events{/privacy}","received_events_url":"https://api.github.com/users/dlucas1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dlucas1/chpl-website","description":"The web UI for chpl","fork":true,"url":"https://api.github.com/repos/dlucas1/chpl-website","forks_url":"https://api.github.com/repos/dlucas1/chpl-website/forks","keys_url":"https://api.github.com/repos/dlucas1/chpl-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlucas1/chpl-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlucas1/chpl-website/teams","hooks_url":"https://api.github.com/repos/dlucas1/chpl-website/hooks","issue_events_url":"https://api.github.com/repos/dlucas1/chpl-website/issues/events{/number}","events_url":"https://api.github.com/repos/dlucas1/chpl-website/events","assignees_url":"https://api.github.com/repos/dlucas1/chpl-website/assignees{/user}","branches_url":"https://api.github.com/repos/dlucas1/chpl-website/branches{/branch}","tags_url":"https://api.github.com/repos/dlucas1/chpl-website/tags","blobs_url":"https://api.github.com/repos/dlucas1/chpl-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlucas1/chpl-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlucas1/chpl-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlucas1/chpl-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlucas1/chpl-website/statuses/{sha}","languages_url":"https://api.github.com/repos/dlucas1/chpl-website/languages","stargazers_url":"https://api.github.com/repos/dlucas1/chpl-website/stargazers","contributors_url":"https://api.github.com/repos/dlucas1/chpl-website/contributors","subscribers_url":"https://api.github.com/repos/dlucas1/chpl-website/subscribers","subscription_url":"https://api.github.com/repos/dlucas1/chpl-website/subscription","commits_url":"https://api.github.com/repos/dlucas1/chpl-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlucas1/chpl-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlucas1/chpl-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlucas1/chpl-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlucas1/chpl-website/contents/{+path}","compare_url":"https://api.github.com/repos/dlucas1/chpl-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlucas1/chpl-website/merges","archive_url":"https://api.github.com/repos/dlucas1/chpl-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlucas1/chpl-website/downloads","issues_url":"https://api.github.com/repos/dlucas1/chpl-website/issues{/number}","pulls_url":"https://api.github.com/repos/dlucas1/chpl-website/pulls{/number}","milestones_url":"https://api.github.com/repos/dlucas1/chpl-website/milestones{/number}","notifications_url":"https://api.github.com/repos/dlucas1/chpl-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlucas1/chpl-website/labels{/name}","releases_url":"https://api.github.com/repos/dlucas1/chpl-website/releases{/id}","deployments_url":"https://api.github.com/repos/dlucas1/chpl-website/deployments","created_at":"2016-07-21T18:28:59Z","updated_at":"2016-07-21T18:29:00Z","pushed_at":"2017-03-13T19:18:56Z","git_url":"git://github.com/dlucas1/chpl-website.git","ssh_url":"git@github.com:dlucas1/chpl-website.git","clone_url":"https://github.com/dlucas1/chpl-website.git","svn_url":"https://github.com/dlucas1/chpl-website","homepage":null,"size":6349,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"chpladmin:development","ref":"development","sha":"37d760507ced2e20a9c0b9c93da04445c6658485","user":{"login":"chpladmin","id":11613790,"avatar_url":"https://avatars1.githubusercontent.com/u/11613790?v=3","gravatar_id":"","url":"https://api.github.com/users/chpladmin","html_url":"https://github.com/chpladmin","followers_url":"https://api.github.com/users/chpladmin/followers","following_url":"https://api.github.com/users/chpladmin/following{/other_user}","gists_url":"https://api.github.com/users/chpladmin/gists{/gist_id}","starred_url":"https://api.github.com/users/chpladmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chpladmin/subscriptions","organizations_url":"https://api.github.com/users/chpladmin/orgs","repos_url":"https://api.github.com/users/chpladmin/repos","events_url":"https://api.github.com/users/chpladmin/events{/privacy}","received_events_url":"https://api.github.com/users/chpladmin/received_events","type":"Organization","site_admin":false},"repo":{"id":33204165,"name":"chpl-website","full_name":"chpladmin/chpl-website","owner":{"login":"chpladmin","id":11613790,"avatar_url":"https://avatars1.githubusercontent.com/u/11613790?v=3","gravatar_id":"","url":"https://api.github.com/users/chpladmin","html_url":"https://github.com/chpladmin","followers_url":"https://api.github.com/users/chpladmin/followers","following_url":"https://api.github.com/users/chpladmin/following{/other_user}","gists_url":"https://api.github.com/users/chpladmin/gists{/gist_id}","starred_url":"https://api.github.com/users/chpladmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chpladmin/subscriptions","organizations_url":"https://api.github.com/users/chpladmin/orgs","repos_url":"https://api.github.com/users/chpladmin/repos","events_url":"https://api.github.com/users/chpladmin/events{/privacy}","received_events_url":"https://api.github.com/users/chpladmin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chpladmin/chpl-website","description":"The web UI for chpl","fork":false,"url":"https://api.github.com/repos/chpladmin/chpl-website","forks_url":"https://api.github.com/repos/chpladmin/chpl-website/forks","keys_url":"https://api.github.com/repos/chpladmin/chpl-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chpladmin/chpl-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chpladmin/chpl-website/teams","hooks_url":"https://api.github.com/repos/chpladmin/chpl-website/hooks","issue_events_url":"https://api.github.com/repos/chpladmin/chpl-website/issues/events{/number}","events_url":"https://api.github.com/repos/chpladmin/chpl-website/events","assignees_url":"https://api.github.com/repos/chpladmin/chpl-website/assignees{/user}","branches_url":"https://api.github.com/repos/chpladmin/chpl-website/branches{/branch}","tags_url":"https://api.github.com/repos/chpladmin/chpl-website/tags","blobs_url":"https://api.github.com/repos/chpladmin/chpl-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chpladmin/chpl-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chpladmin/chpl-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/chpladmin/chpl-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chpladmin/chpl-website/statuses/{sha}","languages_url":"https://api.github.com/repos/chpladmin/chpl-website/languages","stargazers_url":"https://api.github.com/repos/chpladmin/chpl-website/stargazers","contributors_url":"https://api.github.com/repos/chpladmin/chpl-website/contributors","subscribers_url":"https://api.github.com/repos/chpladmin/chpl-website/subscribers","subscription_url":"https://api.github.com/repos/chpladmin/chpl-website/subscription","commits_url":"https://api.github.com/repos/chpladmin/chpl-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/chpladmin/chpl-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/chpladmin/chpl-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/chpladmin/chpl-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/chpladmin/chpl-website/contents/{+path}","compare_url":"https://api.github.com/repos/chpladmin/chpl-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chpladmin/chpl-website/merges","archive_url":"https://api.github.com/repos/chpladmin/chpl-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chpladmin/chpl-website/downloads","issues_url":"https://api.github.com/repos/chpladmin/chpl-website/issues{/number}","pulls_url":"https://api.github.com/repos/chpladmin/chpl-website/pulls{/number}","milestones_url":"https://api.github.com/repos/chpladmin/chpl-website/milestones{/number}","notifications_url":"https://api.github.com/repos/chpladmin/chpl-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chpladmin/chpl-website/labels{/name}","releases_url":"https://api.github.com/repos/chpladmin/chpl-website/releases{/id}","deployments_url":"https://api.github.com/repos/chpladmin/chpl-website/deployments","created_at":"2015-03-31T19:04:43Z","updated_at":"2016-01-12T14:16:36Z","pushed_at":"2017-03-13T19:18:58Z","git_url":"git://github.com/chpladmin/chpl-website.git","ssh_url":"git@github.com:chpladmin/chpl-website.git","clone_url":"https://github.com/chpladmin/chpl-website.git","svn_url":"https://github.com/chpladmin/chpl-website","homepage":null,"size":6220,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106"},"html":{"href":"https://github.com/chpladmin/chpl-website/pull/106"},"issue":{"href":"https://api.github.com/repos/chpladmin/chpl-website/issues/106"},"comments":{"href":"https://api.github.com/repos/chpladmin/chpl-website/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/chpladmin/chpl-website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chpladmin/chpl-website/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/chpladmin/chpl-website/statuses/6da1c7d00fffe3f50078d25b698fddc435154251"}}}}
{"actor":{"display_login":"andlar"}}