{"action":"created","comment":{"url":"https://api.github.com/repos/aces/Loris/pulls/comments/221688388","pull_request_review_id":160397775,"id":221688388,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTY4ODM4OA==","diff_hunk":"@@ -36,8 +36,8 @@\n         </div>\n     </div>\n </div>\n-\n-\n+{/if}\n+{if $usecanedit}","path":"modules/data_release/templates/menu_data_release.tpl","position":13,"original_position":13,"commit_id":"5a49669aac4dcf536ef5956aed963dc62aa1cdea","original_commit_id":"5a49669aac4dcf536ef5956aed963dc62aa1cdea","user":{"login":"johnsaigle","id":4022790,"node_id":"MDQ6VXNlcjQwMjI3OTA=","avatar_url":"https://avatars0.githubusercontent.com/u/4022790?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsaigle","html_url":"https://github.com/johnsaigle","followers_url":"https://api.github.com/users/johnsaigle/followers","following_url":"https://api.github.com/users/johnsaigle/following{/other_user}","gists_url":"https://api.github.com/users/johnsaigle/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsaigle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsaigle/subscriptions","organizations_url":"https://api.github.com/users/johnsaigle/orgs","repos_url":"https://api.github.com/users/johnsaigle/repos","events_url":"https://api.github.com/users/johnsaigle/events{/privacy}","received_events_url":"https://api.github.com/users/johnsaigle/received_events","type":"User","site_admin":false},"body":"typo again","created_at":"2018-10-01T17:17:46Z","updated_at":"2018-10-01T17:19:44Z","html_url":"https://github.com/aces/Loris/pull/3974#discussion_r221688388","pull_request_url":"https://api.github.com/repos/aces/Loris/pulls/3974","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments/221688388"},"html":{"href":"https://github.com/aces/Loris/pull/3974#discussion_r221688388"},"pull_request":{"href":"https://api.github.com/repos/aces/Loris/pulls/3974"}}},"pull_request":{"url":"https://api.github.com/repos/aces/Loris/pulls/3974","id":219442581,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NDQyNTgx","html_url":"https://github.com/aces/Loris/pull/3974","diff_url":"https://github.com/aces/Loris/pull/3974.diff","patch_url":"https://github.com/aces/Loris/pull/3974.patch","issue_url":"https://api.github.com/repos/aces/Loris/issues/3974","number":3974,"state":"open","locked":false,"title":"[data_release] Add permissions for upload and edit fucntionalities","user":{"login":"ridz1208","id":15268287,"node_id":"MDQ6VXNlcjE1MjY4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/15268287?v=4","gravatar_id":"","url":"https://api.github.com/users/ridz1208","html_url":"https://github.com/ridz1208","followers_url":"https://api.github.com/users/ridz1208/followers","following_url":"https://api.github.com/users/ridz1208/following{/other_user}","gists_url":"https://api.github.com/users/ridz1208/gists{/gist_id}","starred_url":"https://api.github.com/users/ridz1208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridz1208/subscriptions","organizations_url":"https://api.github.com/users/ridz1208/orgs","repos_url":"https://api.github.com/users/ridz1208/repos","events_url":"https://api.github.com/users/ridz1208/events{/privacy}","received_events_url":"https://api.github.com/users/ridz1208/received_events","type":"User","site_admin":false},"body":"### Brief summary of changes\r\nCurrently in order to be able to upload and/or edit the access to files in the data release module one needs to have the `superuser` permission. Given that this permission gives access to so many other things, this PR separates these functionalities from `superuser` and adds 2 new permissions `data_release_upload` and `data_release_edit_permissions`.\r\n\r\n### To test this change...\r\n\r\n- [ ] source SQL patch\r\n- [ ] follow the newly modified test plan\r\n- [ ] make sure documentation was properly updated everywhere\r\n","created_at":"2018-10-01T16:45:37Z","updated_at":"2018-10-01T17:19:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a13249d2dc5db966797a103e824429731f029adf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":152314769,"node_id":"MDU6TGFiZWwxNTIzMTQ3Njk=","url":"https://api.github.com/repos/aces/Loris/labels/Caveat%20for%20Existing%20Projects","name":"Caveat for Existing Projects","color":"d4c5f9","default":false},{"id":152305520,"node_id":"MDU6TGFiZWwxNTIzMDU1MjA=","url":"https://api.github.com/repos/aces/Loris/labels/Feature","name":"Feature","color":"1d76db","default":false},{"id":153844577,"node_id":"MDU6TGFiZWwxNTM4NDQ1Nzc=","url":"https://api.github.com/repos/aces/Loris/labels/SQL","name":"SQL","color":"bfe5bf","default":false},{"id":708895955,"node_id":"MDU6TGFiZWw3MDg4OTU5NTU=","url":"https://api.github.com/repos/aces/Loris/labels/[branch]%20minor","name":"[branch] minor","color":"996633","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/aces/Loris/pulls/3974/commits","review_comments_url":"https://api.github.com/repos/aces/Loris/pulls/3974/comments","review_comment_url":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aces/Loris/issues/3974/comments","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/5a49669aac4dcf536ef5956aed963dc62aa1cdea","head":{"label":"ridz1208:2018_10_01_add_permission_data_release","ref":"2018_10_01_add_permission_data_release","sha":"5a49669aac4dcf536ef5956aed963dc62aa1cdea","user":{"login":"ridz1208","id":15268287,"node_id":"MDQ6VXNlcjE1MjY4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/15268287?v=4","gravatar_id":"","url":"https://api.github.com/users/ridz1208","html_url":"https://github.com/ridz1208","followers_url":"https://api.github.com/users/ridz1208/followers","following_url":"https://api.github.com/users/ridz1208/following{/other_user}","gists_url":"https://api.github.com/users/ridz1208/gists{/gist_id}","starred_url":"https://api.github.com/users/ridz1208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridz1208/subscriptions","organizations_url":"https://api.github.com/users/ridz1208/orgs","repos_url":"https://api.github.com/users/ridz1208/repos","events_url":"https://api.github.com/users/ridz1208/events{/privacy}","received_events_url":"https://api.github.com/users/ridz1208/received_events","type":"User","site_admin":false},"repo":{"id":50528288,"node_id":"MDEwOlJlcG9zaXRvcnk1MDUyODI4OA==","name":"Loris","full_name":"ridz1208/Loris","private":false,"owner":{"login":"ridz1208","id":15268287,"node_id":"MDQ6VXNlcjE1MjY4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/15268287?v=4","gravatar_id":"","url":"https://api.github.com/users/ridz1208","html_url":"https://github.com/ridz1208","followers_url":"https://api.github.com/users/ridz1208/followers","following_url":"https://api.github.com/users/ridz1208/following{/other_user}","gists_url":"https://api.github.com/users/ridz1208/gists{/gist_id}","starred_url":"https://api.github.com/users/ridz1208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridz1208/subscriptions","organizations_url":"https://api.github.com/users/ridz1208/orgs","repos_url":"https://api.github.com/users/ridz1208/repos","events_url":"https://api.github.com/users/ridz1208/events{/privacy}","received_events_url":"https://api.github.com/users/ridz1208/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ridz1208/Loris","description":"LORIS is a web-accessible database solution for longitudinal multi-site studies.","fork":true,"url":"https://api.github.com/repos/ridz1208/Loris","forks_url":"https://api.github.com/repos/ridz1208/Loris/forks","keys_url":"https://api.github.com/repos/ridz1208/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ridz1208/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ridz1208/Loris/teams","hooks_url":"https://api.github.com/repos/ridz1208/Loris/hooks","issue_events_url":"https://api.github.com/repos/ridz1208/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/ridz1208/Loris/events","assignees_url":"https://api.github.com/repos/ridz1208/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/ridz1208/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/ridz1208/Loris/tags","blobs_url":"https://api.github.com/repos/ridz1208/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ridz1208/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ridz1208/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/ridz1208/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ridz1208/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/ridz1208/Loris/languages","stargazers_url":"https://api.github.com/repos/ridz1208/Loris/stargazers","contributors_url":"https://api.github.com/repos/ridz1208/Loris/contributors","subscribers_url":"https://api.github.com/repos/ridz1208/Loris/subscribers","subscription_url":"https://api.github.com/repos/ridz1208/Loris/subscription","commits_url":"https://api.github.com/repos/ridz1208/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/ridz1208/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/ridz1208/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/ridz1208/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/ridz1208/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/ridz1208/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ridz1208/Loris/merges","archive_url":"https://api.github.com/repos/ridz1208/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ridz1208/Loris/downloads","issues_url":"https://api.github.com/repos/ridz1208/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/ridz1208/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/ridz1208/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/ridz1208/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ridz1208/Loris/labels{/name}","releases_url":"https://api.github.com/repos/ridz1208/Loris/releases{/id}","deployments_url":"https://api.github.com/repos/ridz1208/Loris/deployments","created_at":"2016-01-27T18:25:19Z","updated_at":"2016-01-27T18:25:22Z","pushed_at":"2018-10-01T16:41:10Z","git_url":"git://github.com/ridz1208/Loris.git","ssh_url":"git@github.com:ridz1208/Loris.git","clone_url":"https://github.com/ridz1208/Loris.git","svn_url":"https://github.com/ridz1208/Loris","homepage":"","size":78921,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":4,"watchers":0,"default_branch":"bugfix"}},"base":{"label":"aces:minor","ref":"minor","sha":"c429fcad830cfa2c6ff2cd1c70c42f36a3abae33","user":{"login":"aces","id":472868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3Mjg2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/472868?v=4","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"repo":{"id":1125630,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI1NjMw","name":"Loris","full_name":"aces/Loris","private":false,"owner":{"login":"aces","id":472868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3Mjg2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/472868?v=4","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/aces/Loris","description":"LORIS is a web-accessible database solution for longitudinal multi-site studies.","fork":false,"url":"https://api.github.com/repos/aces/Loris","forks_url":"https://api.github.com/repos/aces/Loris/forks","keys_url":"https://api.github.com/repos/aces/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aces/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aces/Loris/teams","hooks_url":"https://api.github.com/repos/aces/Loris/hooks","issue_events_url":"https://api.github.com/repos/aces/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/aces/Loris/events","assignees_url":"https://api.github.com/repos/aces/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/aces/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/aces/Loris/tags","blobs_url":"https://api.github.com/repos/aces/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aces/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aces/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/aces/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/aces/Loris/languages","stargazers_url":"https://api.github.com/repos/aces/Loris/stargazers","contributors_url":"https://api.github.com/repos/aces/Loris/contributors","subscribers_url":"https://api.github.com/repos/aces/Loris/subscribers","subscription_url":"https://api.github.com/repos/aces/Loris/subscription","commits_url":"https://api.github.com/repos/aces/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/aces/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/aces/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/aces/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/aces/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/aces/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aces/Loris/merges","archive_url":"https://api.github.com/repos/aces/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aces/Loris/downloads","issues_url":"https://api.github.com/repos/aces/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/aces/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/aces/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/aces/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aces/Loris/labels{/name}","releases_url":"https://api.github.com/repos/aces/Loris/releases{/id}","deployments_url":"https://api.github.com/repos/aces/Loris/deployments","created_at":"2010-11-30T14:57:57Z","updated_at":"2018-10-01T15:12:36Z","pushed_at":"2018-10-01T17:12:54Z","git_url":"git://github.com/aces/Loris.git","ssh_url":"git@github.com:aces/Loris.git","clone_url":"https://github.com/aces/Loris.git","svn_url":"https://github.com/aces/Loris","homepage":"","size":77079,"stargazers_count":66,"watchers_count":66,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"archived":false,"open_issues_count":99,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":97,"open_issues":99,"watchers":66,"default_branch":"minor"}},"_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/3974"},"html":{"href":"https://github.com/aces/Loris/pull/3974"},"issue":{"href":"https://api.github.com/repos/aces/Loris/issues/3974"},"comments":{"href":"https://api.github.com/repos/aces/Loris/issues/3974/comments"},"review_comments":{"href":"https://api.github.com/repos/aces/Loris/pulls/3974/comments"},"review_comment":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aces/Loris/pulls/3974/commits"},"statuses":{"href":"https://api.github.com/repos/aces/Loris/statuses/5a49669aac4dcf536ef5956aed963dc62aa1cdea"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"johnsaigle"}}