{"action":"created","comment":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/178749509","pull_request_review_id":108846885,"id":178749509,"diff_hunk":"@@ -29,12 +29,28 @@ def menu_items\n     end\n   end\n \n-  def samples\n+  def rep_items\n     res = SmartAnnotation.new(current_user, current_team, @query)\n+    repository = Repository.find_by_id(params[:repository_id])\n+    render_403 && return unless repository && can_read_team?(repository.team)","path":"app/controllers/at_who_controller.rb","position":8,"original_position":8,"commit_id":"51860652c1e425ffed0939aa1d90d4ee75ef7d57","original_commit_id":"51860652c1e425ffed0939aa1d90d4ee75ef7d57","user":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars0.githubusercontent.com/u/7046787?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"body":"can you handle this in before_action?","created_at":"2018-04-03T08:35:18Z","updated_at":"2018-04-03T08:47:03Z","html_url":"https://github.com/biosistemika/scinote-web/pull/1070#discussion_r178749509","pull_request_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1070","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/178749509"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/1070#discussion_r178749509"},"pull_request":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1070"}}},"pull_request":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1070","id":178900708,"html_url":"https://github.com/biosistemika/scinote-web/pull/1070","diff_url":"https://github.com/biosistemika/scinote-web/pull/1070.diff","patch_url":"https://github.com/biosistemika/scinote-web/pull/1070.patch","issue_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/1070","number":1070,"state":"open","locked":false,"title":"Refactor smart annotations modal [SCI-2223]","user":{"login":"okriuchykhin","id":22216856,"avatar_url":"https://avatars3.githubusercontent.com/u/22216856?v=4","gravatar_id":"","url":"https://api.github.com/users/okriuchykhin","html_url":"https://github.com/okriuchykhin","followers_url":"https://api.github.com/users/okriuchykhin/followers","following_url":"https://api.github.com/users/okriuchykhin/following{/other_user}","gists_url":"https://api.github.com/users/okriuchykhin/gists{/gist_id}","starred_url":"https://api.github.com/users/okriuchykhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okriuchykhin/subscriptions","organizations_url":"https://api.github.com/users/okriuchykhin/orgs","repos_url":"https://api.github.com/users/okriuchykhin/repos","events_url":"https://api.github.com/users/okriuchykhin/events{/privacy}","received_events_url":"https://api.github.com/users/okriuchykhin/received_events","type":"User","site_admin":false},"body":"https://biosistemika.atlassian.net/browse/SCI-2223","created_at":"2018-04-02T18:40:56Z","updated_at":"2018-04-03T08:47:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db2845f06518b3241767fa617ad9cefb8c54d35c","assignee":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars0.githubusercontent.com/u/7046787?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"assignees":[{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars0.githubusercontent.com/u/7046787?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1070/commits","review_comments_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1070/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/1070/comments","statuses_url":"https://api.github.com/repos/biosistemika/scinote-web/statuses/51860652c1e425ffed0939aa1d90d4ee75ef7d57","head":{"label":"okriuchykhin:ok_SCI_2223","ref":"ok_SCI_2223","sha":"51860652c1e425ffed0939aa1d90d4ee75ef7d57","user":{"login":"okriuchykhin","id":22216856,"avatar_url":"https://avatars3.githubusercontent.com/u/22216856?v=4","gravatar_id":"","url":"https://api.github.com/users/okriuchykhin","html_url":"https://github.com/okriuchykhin","followers_url":"https://api.github.com/users/okriuchykhin/followers","following_url":"https://api.github.com/users/okriuchykhin/following{/other_user}","gists_url":"https://api.github.com/users/okriuchykhin/gists{/gist_id}","starred_url":"https://api.github.com/users/okriuchykhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okriuchykhin/subscriptions","organizations_url":"https://api.github.com/users/okriuchykhin/orgs","repos_url":"https://api.github.com/users/okriuchykhin/repos","events_url":"https://api.github.com/users/okriuchykhin/events{/privacy}","received_events_url":"https://api.github.com/users/okriuchykhin/received_events","type":"User","site_admin":false},"repo":{"id":68292067,"name":"scinote-web","full_name":"okriuchykhin/scinote-web","owner":{"login":"okriuchykhin","id":22216856,"avatar_url":"https://avatars3.githubusercontent.com/u/22216856?v=4","gravatar_id":"","url":"https://api.github.com/users/okriuchykhin","html_url":"https://github.com/okriuchykhin","followers_url":"https://api.github.com/users/okriuchykhin/followers","following_url":"https://api.github.com/users/okriuchykhin/following{/other_user}","gists_url":"https://api.github.com/users/okriuchykhin/gists{/gist_id}","starred_url":"https://api.github.com/users/okriuchykhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okriuchykhin/subscriptions","organizations_url":"https://api.github.com/users/okriuchykhin/orgs","repos_url":"https://api.github.com/users/okriuchykhin/repos","events_url":"https://api.github.com/users/okriuchykhin/events{/privacy}","received_events_url":"https://api.github.com/users/okriuchykhin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okriuchykhin/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/okriuchykhin/scinote-web","forks_url":"https://api.github.com/repos/okriuchykhin/scinote-web/forks","keys_url":"https://api.github.com/repos/okriuchykhin/scinote-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okriuchykhin/scinote-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okriuchykhin/scinote-web/teams","hooks_url":"https://api.github.com/repos/okriuchykhin/scinote-web/hooks","issue_events_url":"https://api.github.com/repos/okriuchykhin/scinote-web/issues/events{/number}","events_url":"https://api.github.com/repos/okriuchykhin/scinote-web/events","assignees_url":"https://api.github.com/repos/okriuchykhin/scinote-web/assignees{/user}","branches_url":"https://api.github.com/repos/okriuchykhin/scinote-web/branches{/branch}","tags_url":"https://api.github.com/repos/okriuchykhin/scinote-web/tags","blobs_url":"https://api.github.com/repos/okriuchykhin/scinote-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okriuchykhin/scinote-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okriuchykhin/scinote-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/okriuchykhin/scinote-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okriuchykhin/scinote-web/statuses/{sha}","languages_url":"https://api.github.com/repos/okriuchykhin/scinote-web/languages","stargazers_url":"https://api.github.com/repos/okriuchykhin/scinote-web/stargazers","contributors_url":"https://api.github.com/repos/okriuchykhin/scinote-web/contributors","subscribers_url":"https://api.github.com/repos/okriuchykhin/scinote-web/subscribers","subscription_url":"https://api.github.com/repos/okriuchykhin/scinote-web/subscription","commits_url":"https://api.github.com/repos/okriuchykhin/scinote-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/okriuchykhin/scinote-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/okriuchykhin/scinote-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/okriuchykhin/scinote-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/okriuchykhin/scinote-web/contents/{+path}","compare_url":"https://api.github.com/repos/okriuchykhin/scinote-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okriuchykhin/scinote-web/merges","archive_url":"https://api.github.com/repos/okriuchykhin/scinote-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okriuchykhin/scinote-web/downloads","issues_url":"https://api.github.com/repos/okriuchykhin/scinote-web/issues{/number}","pulls_url":"https://api.github.com/repos/okriuchykhin/scinote-web/pulls{/number}","milestones_url":"https://api.github.com/repos/okriuchykhin/scinote-web/milestones{/number}","notifications_url":"https://api.github.com/repos/okriuchykhin/scinote-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okriuchykhin/scinote-web/labels{/name}","releases_url":"https://api.github.com/repos/okriuchykhin/scinote-web/releases{/id}","deployments_url":"https://api.github.com/repos/okriuchykhin/scinote-web/deployments","created_at":"2016-09-15T12:31:51Z","updated_at":"2016-09-15T12:31:53Z","pushed_at":"2018-04-02T18:48:56Z","git_url":"git://github.com/okriuchykhin/scinote-web.git","ssh_url":"git@github.com:okriuchykhin/scinote-web.git","clone_url":"https://github.com/okriuchykhin/scinote-web.git","svn_url":"https://github.com/okriuchykhin/scinote-web","homepage":"http://www.scinote.net","size":13517,"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":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"biosistemika:ux-release-1","ref":"ux-release-1","sha":"f5f6fa4a4f7cab437e5743f26bdcc15566cfb769","user":{"login":"biosistemika","id":15630206,"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,"name":"scinote-web","full_name":"biosistemika/scinote-web","owner":{"login":"biosistemika","id":15630206,"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},"private":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-03-28T13:23:08Z","pushed_at":"2018-04-03T08:31:20Z","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":25142,"stargazers_count":132,"watchers_count":132,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":12,"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"},"forks":38,"open_issues":12,"watchers":132,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1070"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/1070"},"issue":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/1070"},"comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/1070/comments"},"review_comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1070/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/1070/commits"},"statuses":{"href":"https://api.github.com/repos/biosistemika/scinote-web/statuses/51860652c1e425ffed0939aa1d90d4ee75ef7d57"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ZmagoD"}}