{"action":"created","comment":{"url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments/91353900","pull_request_review_id":11835261,"id":91353900,"diff_hunk":"@@ -115,12 +115,19 @@ def project_exists(project_id):\n     \"\"\"\n     return (len(Project.objects.filter(id=project_id)) > 0)\n \n+def current_user_is_superuser(current_user):\n+    return current_user.is_superuser == 1","path":"qipr_approver/approver/workflows/project_crud.py","position":5,"original_position":5,"commit_id":"f17ec294add000c9a811896c4989b9ba8521563f","original_commit_id":"f17ec294add000c9a811896c4989b9ba8521563f","user":{"login":"DevMattM","id":18493126,"avatar_url":"https://avatars.githubusercontent.com/u/18493126?v=3","gravatar_id":"","url":"https://api.github.com/users/DevMattM","html_url":"https://github.com/DevMattM","followers_url":"https://api.github.com/users/DevMattM/followers","following_url":"https://api.github.com/users/DevMattM/following{/other_user}","gists_url":"https://api.github.com/users/DevMattM/gists{/gist_id}","starred_url":"https://api.github.com/users/DevMattM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevMattM/subscriptions","organizations_url":"https://api.github.com/users/DevMattM/orgs","repos_url":"https://api.github.com/users/DevMattM/repos","events_url":"https://api.github.com/users/DevMattM/events{/privacy}","received_events_url":"https://api.github.com/users/DevMattM/received_events","type":"User","site_admin":false},"body":"Can this just be a boolean True/False instead of a comparison?","created_at":"2016-12-07T18:21:16Z","updated_at":"2016-12-07T18:53:51Z","html_url":"https://github.com/ctsit/qipr_approver/pull/158#discussion_r91353900","pull_request_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments/91353900"},"html":{"href":"https://github.com/ctsit/qipr_approver/pull/158#discussion_r91353900"},"pull_request":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158","id":95363405,"html_url":"https://github.com/ctsit/qipr_approver/pull/158","diff_url":"https://github.com/ctsit/qipr_approver/pull/158.diff","patch_url":"https://github.com/ctsit/qipr_approver/pull/158.patch","issue_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/158","number":158,"state":"open","locked":false,"title":"Adminchanges","user":{"login":"ndavuluri","id":14244567,"avatar_url":"https://avatars.githubusercontent.com/u/14244567?v=3","gravatar_id":"","url":"https://api.github.com/users/ndavuluri","html_url":"https://github.com/ndavuluri","followers_url":"https://api.github.com/users/ndavuluri/followers","following_url":"https://api.github.com/users/ndavuluri/following{/other_user}","gists_url":"https://api.github.com/users/ndavuluri/gists{/gist_id}","starred_url":"https://api.github.com/users/ndavuluri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndavuluri/subscriptions","organizations_url":"https://api.github.com/users/ndavuluri/orgs","repos_url":"https://api.github.com/users/ndavuluri/repos","events_url":"https://api.github.com/users/ndavuluri/events{/privacy}","received_events_url":"https://api.github.com/users/ndavuluri/received_events","type":"User","site_admin":false},"body":"To give permissions for any user to be a SuperUser - Login to Django Admin and check is_staff,is_super,is_active for that user. \r\n\r\nDashboard of Admin shows 2 new options: \r\nAdmin - ModifyProjects \r\nSuperUser will be able to view/change/delete all projects . \r\nThis page will give them an option to Archive and Unarchive Projects.\r\nAdmin - ModifyUsers \r\nThis page will display basic details of all users. And an edit user will allow  Super User to Edit all the Profile Information.\r\n","created_at":"2016-11-26T06:53:51Z","updated_at":"2016-12-07T18:53:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45955a66c9a920943e6fa9d4906796d5a39ce125","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158/commits","review_comments_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158/comments","review_comment_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/158/comments","statuses_url":"https://api.github.com/repos/ctsit/qipr_approver/statuses/f17ec294add000c9a811896c4989b9ba8521563f","head":{"label":"ndavuluri:adminchanges","ref":"adminchanges","sha":"f17ec294add000c9a811896c4989b9ba8521563f","user":{"login":"ndavuluri","id":14244567,"avatar_url":"https://avatars.githubusercontent.com/u/14244567?v=3","gravatar_id":"","url":"https://api.github.com/users/ndavuluri","html_url":"https://github.com/ndavuluri","followers_url":"https://api.github.com/users/ndavuluri/followers","following_url":"https://api.github.com/users/ndavuluri/following{/other_user}","gists_url":"https://api.github.com/users/ndavuluri/gists{/gist_id}","starred_url":"https://api.github.com/users/ndavuluri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndavuluri/subscriptions","organizations_url":"https://api.github.com/users/ndavuluri/orgs","repos_url":"https://api.github.com/users/ndavuluri/repos","events_url":"https://api.github.com/users/ndavuluri/events{/privacy}","received_events_url":"https://api.github.com/users/ndavuluri/received_events","type":"User","site_admin":false},"repo":{"id":63814060,"name":"qipr_approver","full_name":"ndavuluri/qipr_approver","owner":{"login":"ndavuluri","id":14244567,"avatar_url":"https://avatars.githubusercontent.com/u/14244567?v=3","gravatar_id":"","url":"https://api.github.com/users/ndavuluri","html_url":"https://github.com/ndavuluri","followers_url":"https://api.github.com/users/ndavuluri/followers","following_url":"https://api.github.com/users/ndavuluri/following{/other_user}","gists_url":"https://api.github.com/users/ndavuluri/gists{/gist_id}","starred_url":"https://api.github.com/users/ndavuluri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndavuluri/subscriptions","organizations_url":"https://api.github.com/users/ndavuluri/orgs","repos_url":"https://api.github.com/users/ndavuluri/repos","events_url":"https://api.github.com/users/ndavuluri/events{/privacy}","received_events_url":"https://api.github.com/users/ndavuluri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ndavuluri/qipr_approver","description":"Quality Improvement Project Registry Approver ","fork":true,"url":"https://api.github.com/repos/ndavuluri/qipr_approver","forks_url":"https://api.github.com/repos/ndavuluri/qipr_approver/forks","keys_url":"https://api.github.com/repos/ndavuluri/qipr_approver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndavuluri/qipr_approver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndavuluri/qipr_approver/teams","hooks_url":"https://api.github.com/repos/ndavuluri/qipr_approver/hooks","issue_events_url":"https://api.github.com/repos/ndavuluri/qipr_approver/issues/events{/number}","events_url":"https://api.github.com/repos/ndavuluri/qipr_approver/events","assignees_url":"https://api.github.com/repos/ndavuluri/qipr_approver/assignees{/user}","branches_url":"https://api.github.com/repos/ndavuluri/qipr_approver/branches{/branch}","tags_url":"https://api.github.com/repos/ndavuluri/qipr_approver/tags","blobs_url":"https://api.github.com/repos/ndavuluri/qipr_approver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndavuluri/qipr_approver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndavuluri/qipr_approver/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndavuluri/qipr_approver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndavuluri/qipr_approver/statuses/{sha}","languages_url":"https://api.github.com/repos/ndavuluri/qipr_approver/languages","stargazers_url":"https://api.github.com/repos/ndavuluri/qipr_approver/stargazers","contributors_url":"https://api.github.com/repos/ndavuluri/qipr_approver/contributors","subscribers_url":"https://api.github.com/repos/ndavuluri/qipr_approver/subscribers","subscription_url":"https://api.github.com/repos/ndavuluri/qipr_approver/subscription","commits_url":"https://api.github.com/repos/ndavuluri/qipr_approver/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndavuluri/qipr_approver/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndavuluri/qipr_approver/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndavuluri/qipr_approver/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndavuluri/qipr_approver/contents/{+path}","compare_url":"https://api.github.com/repos/ndavuluri/qipr_approver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndavuluri/qipr_approver/merges","archive_url":"https://api.github.com/repos/ndavuluri/qipr_approver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndavuluri/qipr_approver/downloads","issues_url":"https://api.github.com/repos/ndavuluri/qipr_approver/issues{/number}","pulls_url":"https://api.github.com/repos/ndavuluri/qipr_approver/pulls{/number}","milestones_url":"https://api.github.com/repos/ndavuluri/qipr_approver/milestones{/number}","notifications_url":"https://api.github.com/repos/ndavuluri/qipr_approver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndavuluri/qipr_approver/labels{/name}","releases_url":"https://api.github.com/repos/ndavuluri/qipr_approver/releases{/id}","deployments_url":"https://api.github.com/repos/ndavuluri/qipr_approver/deployments","created_at":"2016-07-20T20:58:59Z","updated_at":"2016-08-02T04:08:21Z","pushed_at":"2016-11-29T18:28:21Z","git_url":"git://github.com/ndavuluri/qipr_approver.git","ssh_url":"git@github.com:ndavuluri/qipr_approver.git","clone_url":"https://github.com/ndavuluri/qipr_approver.git","svn_url":"https://github.com/ndavuluri/qipr_approver","homepage":null,"size":11017,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"base":{"label":"ctsit:develop","ref":"develop","sha":"9d5af00a4ccae838c76e7967115be734e0db0d08","user":{"login":"ctsit","id":6988716,"avatar_url":"https://avatars.githubusercontent.com/u/6988716?v=3","gravatar_id":"","url":"https://api.github.com/users/ctsit","html_url":"https://github.com/ctsit","followers_url":"https://api.github.com/users/ctsit/followers","following_url":"https://api.github.com/users/ctsit/following{/other_user}","gists_url":"https://api.github.com/users/ctsit/gists{/gist_id}","starred_url":"https://api.github.com/users/ctsit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctsit/subscriptions","organizations_url":"https://api.github.com/users/ctsit/orgs","repos_url":"https://api.github.com/users/ctsit/repos","events_url":"https://api.github.com/users/ctsit/events{/privacy}","received_events_url":"https://api.github.com/users/ctsit/received_events","type":"Organization","site_admin":false},"repo":{"id":63101692,"name":"qipr_approver","full_name":"ctsit/qipr_approver","owner":{"login":"ctsit","id":6988716,"avatar_url":"https://avatars.githubusercontent.com/u/6988716?v=3","gravatar_id":"","url":"https://api.github.com/users/ctsit","html_url":"https://github.com/ctsit","followers_url":"https://api.github.com/users/ctsit/followers","following_url":"https://api.github.com/users/ctsit/following{/other_user}","gists_url":"https://api.github.com/users/ctsit/gists{/gist_id}","starred_url":"https://api.github.com/users/ctsit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctsit/subscriptions","organizations_url":"https://api.github.com/users/ctsit/orgs","repos_url":"https://api.github.com/users/ctsit/repos","events_url":"https://api.github.com/users/ctsit/events{/privacy}","received_events_url":"https://api.github.com/users/ctsit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ctsit/qipr_approver","description":"Quality Improvement Project Registry Approver ","fork":false,"url":"https://api.github.com/repos/ctsit/qipr_approver","forks_url":"https://api.github.com/repos/ctsit/qipr_approver/forks","keys_url":"https://api.github.com/repos/ctsit/qipr_approver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctsit/qipr_approver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctsit/qipr_approver/teams","hooks_url":"https://api.github.com/repos/ctsit/qipr_approver/hooks","issue_events_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/events{/number}","events_url":"https://api.github.com/repos/ctsit/qipr_approver/events","assignees_url":"https://api.github.com/repos/ctsit/qipr_approver/assignees{/user}","branches_url":"https://api.github.com/repos/ctsit/qipr_approver/branches{/branch}","tags_url":"https://api.github.com/repos/ctsit/qipr_approver/tags","blobs_url":"https://api.github.com/repos/ctsit/qipr_approver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctsit/qipr_approver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctsit/qipr_approver/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctsit/qipr_approver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctsit/qipr_approver/statuses/{sha}","languages_url":"https://api.github.com/repos/ctsit/qipr_approver/languages","stargazers_url":"https://api.github.com/repos/ctsit/qipr_approver/stargazers","contributors_url":"https://api.github.com/repos/ctsit/qipr_approver/contributors","subscribers_url":"https://api.github.com/repos/ctsit/qipr_approver/subscribers","subscription_url":"https://api.github.com/repos/ctsit/qipr_approver/subscription","commits_url":"https://api.github.com/repos/ctsit/qipr_approver/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctsit/qipr_approver/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctsit/qipr_approver/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctsit/qipr_approver/contents/{+path}","compare_url":"https://api.github.com/repos/ctsit/qipr_approver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctsit/qipr_approver/merges","archive_url":"https://api.github.com/repos/ctsit/qipr_approver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctsit/qipr_approver/downloads","issues_url":"https://api.github.com/repos/ctsit/qipr_approver/issues{/number}","pulls_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls{/number}","milestones_url":"https://api.github.com/repos/ctsit/qipr_approver/milestones{/number}","notifications_url":"https://api.github.com/repos/ctsit/qipr_approver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctsit/qipr_approver/labels{/name}","releases_url":"https://api.github.com/repos/ctsit/qipr_approver/releases{/id}","deployments_url":"https://api.github.com/repos/ctsit/qipr_approver/deployments","created_at":"2016-07-11T20:57:57Z","updated_at":"2016-10-24T18:25:54Z","pushed_at":"2016-12-01T19:02:37Z","git_url":"git://github.com/ctsit/qipr_approver.git","ssh_url":"git@github.com:ctsit/qipr_approver.git","clone_url":"https://github.com/ctsit/qipr_approver.git","svn_url":"https://github.com/ctsit/qipr_approver","homepage":null,"size":84115,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":18,"forks":8,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158"},"html":{"href":"https://github.com/ctsit/qipr_approver/pull/158"},"issue":{"href":"https://api.github.com/repos/ctsit/qipr_approver/issues/158"},"comments":{"href":"https://api.github.com/repos/ctsit/qipr_approver/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/ctsit/qipr_approver/statuses/f17ec294add000c9a811896c4989b9ba8521563f"}}}}
{"actor":{"display_login":"DevMattM"}}