{"action":"created","comment":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/227692662","pull_request_review_id":167790479,"id":227692662,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzY5MjY2Mg==","diff_hunk":"@@ -38,6 +38,14 @@\n     user.is_owner_of_project?(project) && project.archived?\n   end\n \n+  # team: export projects\n+  can :export_project do |user, project|\n+    user.is_technician_or_higher_of_project?(project) ||\n+      user.viewer?(project) ||\n+      user.is_admin_of_team?(project.team) ||\n+      (project.visible? && user.is_member_of_team?(project.team))\n+  end","path":"app/permissions/project.rb","position":10,"original_position":10,"commit_id":"bd5a2a43fd188a4c5bda1f167cbd5f33863a9ce8","original_commit_id":"bd5a2a43fd188a4c5bda1f167cbd5f33863a9ce8","user":{"login":"Ducz0r","id":6177722,"node_id":"MDQ6VXNlcjYxNzc3MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6177722?v=4","gravatar_id":"","url":"https://api.github.com/users/Ducz0r","html_url":"https://github.com/Ducz0r","followers_url":"https://api.github.com/users/Ducz0r/followers","following_url":"https://api.github.com/users/Ducz0r/following{/other_user}","gists_url":"https://api.github.com/users/Ducz0r/gists{/gist_id}","starred_url":"https://api.github.com/users/Ducz0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ducz0r/subscriptions","organizations_url":"https://api.github.com/users/Ducz0r/orgs","repos_url":"https://api.github.com/users/Ducz0r/repos","events_url":"https://api.github.com/users/Ducz0r/events{/privacy}","received_events_url":"https://api.github.com/users/Ducz0r/received_events","type":"User","site_admin":false},"body":"And I have another comment: if you _do_ implement a new permission, once the PR is merged, please notify Erik with the new permission - we have the permissions system documented for the customers.","created_at":"2018-10-24T08:41:05Z","updated_at":"2018-10-24T08:41:06Z","html_url":"https://github.com/biosistemika/scinote-web/pull/1337#discussion_r227692662","pull_request_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/227692662"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/1337#discussion_r227692662"},"pull_request":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337"}},"in_reply_to_id":227527055},"pull_request":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337","id":224185679,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MTg1Njc5","html_url":"https://github.com/biosistemika/scinote-web/pull/1337","diff_url":"https://github.com/biosistemika/scinote-web/pull/1337.diff","patch_url":"https://github.com/biosistemika/scinote-web/pull/1337.patch","issue_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/1337","number":1337,"state":"open","locked":false,"title":"Add can_export_project? permission to allow archived projects to be exported [SCI-2805]","user":{"login":"jbargu","id":15074090,"node_id":"MDQ6VXNlcjE1MDc0MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/15074090?v=4","gravatar_id":"","url":"https://api.github.com/users/jbargu","html_url":"https://github.com/jbargu","followers_url":"https://api.github.com/users/jbargu/followers","following_url":"https://api.github.com/users/jbargu/following{/other_user}","gists_url":"https://api.github.com/users/jbargu/gists{/gist_id}","starred_url":"https://api.github.com/users/jbargu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbargu/subscriptions","organizations_url":"https://api.github.com/users/jbargu/orgs","repos_url":"https://api.github.com/users/jbargu/repos","events_url":"https://api.github.com/users/jbargu/events{/privacy}","received_events_url":"https://api.github.com/users/jbargu/received_events","type":"User","site_admin":false},"body":"[SCI-2805](https://biosistemika.atlassian.net/browse/SCI-2805)","created_at":"2018-10-19T06:44:16Z","updated_at":"2018-10-24T08:41:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"615ca208bdb7fceb1b02e58fd7869aa759d13ec6","assignee":{"login":"jbargu","id":15074090,"node_id":"MDQ6VXNlcjE1MDc0MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/15074090?v=4","gravatar_id":"","url":"https://api.github.com/users/jbargu","html_url":"https://github.com/jbargu","followers_url":"https://api.github.com/users/jbargu/followers","following_url":"https://api.github.com/users/jbargu/following{/other_user}","gists_url":"https://api.github.com/users/jbargu/gists{/gist_id}","starred_url":"https://api.github.com/users/jbargu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbargu/subscriptions","organizations_url":"https://api.github.com/users/jbargu/orgs","repos_url":"https://api.github.com/users/jbargu/repos","events_url":"https://api.github.com/users/jbargu/events{/privacy}","received_events_url":"https://api.github.com/users/jbargu/received_events","type":"User","site_admin":false},"assignees":[{"login":"jbargu","id":15074090,"node_id":"MDQ6VXNlcjE1MDc0MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/15074090?v=4","gravatar_id":"","url":"https://api.github.com/users/jbargu","html_url":"https://github.com/jbargu","followers_url":"https://api.github.com/users/jbargu/followers","following_url":"https://api.github.com/users/jbargu/following{/other_user}","gists_url":"https://api.github.com/users/jbargu/gists{/gist_id}","starred_url":"https://api.github.com/users/jbargu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbargu/subscriptions","organizations_url":"https://api.github.com/users/jbargu/orgs","repos_url":"https://api.github.com/users/jbargu/repos","events_url":"https://api.github.com/users/jbargu/events{/privacy}","received_events_url":"https://api.github.com/users/jbargu/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1061948398,"node_id":"MDU6TGFiZWwxMDYxOTQ4Mzk4","url":"https://api.github.com/repos/biosistemika/scinote-web/labels/features/export-all","name":"features/export-all","color":"f9dea2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337/commits","review_comments_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337/comments","review_comment_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/1337/comments","statuses_url":"https://api.github.com/repos/biosistemika/scinote-web/statuses/bd5a2a43fd188a4c5bda1f167cbd5f33863a9ce8","head":{"label":"jbargu:jg_bug_sci_2805","ref":"jg_bug_sci_2805","sha":"bd5a2a43fd188a4c5bda1f167cbd5f33863a9ce8","user":{"login":"jbargu","id":15074090,"node_id":"MDQ6VXNlcjE1MDc0MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/15074090?v=4","gravatar_id":"","url":"https://api.github.com/users/jbargu","html_url":"https://github.com/jbargu","followers_url":"https://api.github.com/users/jbargu/followers","following_url":"https://api.github.com/users/jbargu/following{/other_user}","gists_url":"https://api.github.com/users/jbargu/gists{/gist_id}","starred_url":"https://api.github.com/users/jbargu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbargu/subscriptions","organizations_url":"https://api.github.com/users/jbargu/orgs","repos_url":"https://api.github.com/users/jbargu/repos","events_url":"https://api.github.com/users/jbargu/events{/privacy}","received_events_url":"https://api.github.com/users/jbargu/received_events","type":"User","site_admin":false},"repo":{"id":65180833,"node_id":"MDEwOlJlcG9zaXRvcnk2NTE4MDgzMw==","name":"scinote-web","full_name":"jbargu/scinote-web","private":false,"owner":{"login":"jbargu","id":15074090,"node_id":"MDQ6VXNlcjE1MDc0MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/15074090?v=4","gravatar_id":"","url":"https://api.github.com/users/jbargu","html_url":"https://github.com/jbargu","followers_url":"https://api.github.com/users/jbargu/followers","following_url":"https://api.github.com/users/jbargu/following{/other_user}","gists_url":"https://api.github.com/users/jbargu/gists{/gist_id}","starred_url":"https://api.github.com/users/jbargu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbargu/subscriptions","organizations_url":"https://api.github.com/users/jbargu/orgs","repos_url":"https://api.github.com/users/jbargu/repos","events_url":"https://api.github.com/users/jbargu/events{/privacy}","received_events_url":"https://api.github.com/users/jbargu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jbargu/scinote-web","description":"Open source electronic scientific notebook (ELN) that helps you manage your laboratory work and stores all your experimental data in one place.","fork":true,"url":"https://api.github.com/repos/jbargu/scinote-web","forks_url":"https://api.github.com/repos/jbargu/scinote-web/forks","keys_url":"https://api.github.com/repos/jbargu/scinote-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbargu/scinote-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbargu/scinote-web/teams","hooks_url":"https://api.github.com/repos/jbargu/scinote-web/hooks","issue_events_url":"https://api.github.com/repos/jbargu/scinote-web/issues/events{/number}","events_url":"https://api.github.com/repos/jbargu/scinote-web/events","assignees_url":"https://api.github.com/repos/jbargu/scinote-web/assignees{/user}","branches_url":"https://api.github.com/repos/jbargu/scinote-web/branches{/branch}","tags_url":"https://api.github.com/repos/jbargu/scinote-web/tags","blobs_url":"https://api.github.com/repos/jbargu/scinote-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbargu/scinote-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbargu/scinote-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbargu/scinote-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbargu/scinote-web/statuses/{sha}","languages_url":"https://api.github.com/repos/jbargu/scinote-web/languages","stargazers_url":"https://api.github.com/repos/jbargu/scinote-web/stargazers","contributors_url":"https://api.github.com/repos/jbargu/scinote-web/contributors","subscribers_url":"https://api.github.com/repos/jbargu/scinote-web/subscribers","subscription_url":"https://api.github.com/repos/jbargu/scinote-web/subscription","commits_url":"https://api.github.com/repos/jbargu/scinote-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbargu/scinote-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbargu/scinote-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbargu/scinote-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbargu/scinote-web/contents/{+path}","compare_url":"https://api.github.com/repos/jbargu/scinote-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbargu/scinote-web/merges","archive_url":"https://api.github.com/repos/jbargu/scinote-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbargu/scinote-web/downloads","issues_url":"https://api.github.com/repos/jbargu/scinote-web/issues{/number}","pulls_url":"https://api.github.com/repos/jbargu/scinote-web/pulls{/number}","milestones_url":"https://api.github.com/repos/jbargu/scinote-web/milestones{/number}","notifications_url":"https://api.github.com/repos/jbargu/scinote-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbargu/scinote-web/labels{/name}","releases_url":"https://api.github.com/repos/jbargu/scinote-web/releases{/id}","deployments_url":"https://api.github.com/repos/jbargu/scinote-web/deployments","created_at":"2016-08-08T07:04:14Z","updated_at":"2016-08-08T07:04:16Z","pushed_at":"2018-10-19T06:42:28Z","git_url":"git://github.com/jbargu/scinote-web.git","ssh_url":"git@github.com:jbargu/scinote-web.git","clone_url":"https://github.com/jbargu/scinote-web.git","svn_url":"https://github.com/jbargu/scinote-web","homepage":"http://www.scinote.net","size":14784,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"biosistemika:features/export-all","ref":"features/export-all","sha":"00139beb89db85b2ca8904fd049d9b919e09a1ca","user":{"login":"biosistemika","id":15630206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NjMwMjA2","avatar_url":"https://avatars2.githubusercontent.com/u/15630206?v=4","gravatar_id":"","url":"https://api.github.com/users/biosistemika","html_url":"https://github.com/biosistemika","followers_url":"https://api.github.com/users/biosistemika/followers","following_url":"https://api.github.com/users/biosistemika/following{/other_user}","gists_url":"https://api.github.com/users/biosistemika/gists{/gist_id}","starred_url":"https://api.github.com/users/biosistemika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biosistemika/subscriptions","organizations_url":"https://api.github.com/users/biosistemika/orgs","repos_url":"https://api.github.com/users/biosistemika/repos","events_url":"https://api.github.com/users/biosistemika/events{/privacy}","received_events_url":"https://api.github.com/users/biosistemika/received_events","type":"Organization","site_admin":false},"repo":{"id":51598133,"node_id":"MDEwOlJlcG9zaXRvcnk1MTU5ODEzMw==","name":"scinote-web","full_name":"biosistemika/scinote-web","private":false,"owner":{"login":"biosistemika","id":15630206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NjMwMjA2","avatar_url":"https://avatars2.githubusercontent.com/u/15630206?v=4","gravatar_id":"","url":"https://api.github.com/users/biosistemika","html_url":"https://github.com/biosistemika","followers_url":"https://api.github.com/users/biosistemika/followers","following_url":"https://api.github.com/users/biosistemika/following{/other_user}","gists_url":"https://api.github.com/users/biosistemika/gists{/gist_id}","starred_url":"https://api.github.com/users/biosistemika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biosistemika/subscriptions","organizations_url":"https://api.github.com/users/biosistemika/orgs","repos_url":"https://api.github.com/users/biosistemika/repos","events_url":"https://api.github.com/users/biosistemika/events{/privacy}","received_events_url":"https://api.github.com/users/biosistemika/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/biosistemika/scinote-web","description":"Open source electronic lab notebook (ELN) that helps you manage your laboratory work and stores all your experimental data in one place.","fork":false,"url":"https://api.github.com/repos/biosistemika/scinote-web","forks_url":"https://api.github.com/repos/biosistemika/scinote-web/forks","keys_url":"https://api.github.com/repos/biosistemika/scinote-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biosistemika/scinote-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biosistemika/scinote-web/teams","hooks_url":"https://api.github.com/repos/biosistemika/scinote-web/hooks","issue_events_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/events{/number}","events_url":"https://api.github.com/repos/biosistemika/scinote-web/events","assignees_url":"https://api.github.com/repos/biosistemika/scinote-web/assignees{/user}","branches_url":"https://api.github.com/repos/biosistemika/scinote-web/branches{/branch}","tags_url":"https://api.github.com/repos/biosistemika/scinote-web/tags","blobs_url":"https://api.github.com/repos/biosistemika/scinote-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biosistemika/scinote-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biosistemika/scinote-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/biosistemika/scinote-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biosistemika/scinote-web/statuses/{sha}","languages_url":"https://api.github.com/repos/biosistemika/scinote-web/languages","stargazers_url":"https://api.github.com/repos/biosistemika/scinote-web/stargazers","contributors_url":"https://api.github.com/repos/biosistemika/scinote-web/contributors","subscribers_url":"https://api.github.com/repos/biosistemika/scinote-web/subscribers","subscription_url":"https://api.github.com/repos/biosistemika/scinote-web/subscription","commits_url":"https://api.github.com/repos/biosistemika/scinote-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/biosistemika/scinote-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/biosistemika/scinote-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/biosistemika/scinote-web/contents/{+path}","compare_url":"https://api.github.com/repos/biosistemika/scinote-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biosistemika/scinote-web/merges","archive_url":"https://api.github.com/repos/biosistemika/scinote-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biosistemika/scinote-web/downloads","issues_url":"https://api.github.com/repos/biosistemika/scinote-web/issues{/number}","pulls_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls{/number}","milestones_url":"https://api.github.com/repos/biosistemika/scinote-web/milestones{/number}","notifications_url":"https://api.github.com/repos/biosistemika/scinote-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biosistemika/scinote-web/labels{/name}","releases_url":"https://api.github.com/repos/biosistemika/scinote-web/releases{/id}","deployments_url":"https://api.github.com/repos/biosistemika/scinote-web/deployments","created_at":"2016-02-12T15:47:19Z","updated_at":"2018-10-22T09:33:35Z","pushed_at":"2018-10-23T20:26:19Z","git_url":"git://github.com/biosistemika/scinote-web.git","ssh_url":"git@github.com:biosistemika/scinote-web.git","clone_url":"https://github.com/biosistemika/scinote-web.git","svn_url":"https://github.com/biosistemika/scinote-web","homepage":"https://www.scinote.net","size":27007,"stargazers_count":151,"watchers_count":151,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":45,"open_issues":13,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/1337"},"issue":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/1337"},"comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/1337/comments"},"review_comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337/comments"},"review_comment":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1337/commits"},"statuses":{"href":"https://api.github.com/repos/biosistemika/scinote-web/statuses/bd5a2a43fd188a4c5bda1f167cbd5f33863a9ce8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Ducz0r"}}