{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/comments/87943402","pull_request_review_id":8532968,"id":87943402,"diff_hunk":"@@ -198,6 +198,10 @@ def curation_concern_from_search_results\n     def search_result_document(search_params)\n       _, document_list = search_results(search_params)\n       raise CanCan::AccessDenied.new(nil, :show) if document_list.empty?\n+      if current_user.blank? && document_list.present? && document_list.first[\"suppressed_bsi\"]","path":"app/controllers/concerns/curation_concerns/curation_concern_controller.rb","position":null,"original_position":4,"commit_id":"c7eb12e4df7501c67207fb668a4bc621d58643cc","original_commit_id":"f3fbab5d65b8f3883e78e5b2002e87202d8e48c7","user":{"login":"luisgreg99","id":3486120,"avatar_url":"https://avatars.githubusercontent.com/u/3486120?v=3","gravatar_id":"","url":"https://api.github.com/users/luisgreg99","html_url":"https://github.com/luisgreg99","followers_url":"https://api.github.com/users/luisgreg99/followers","following_url":"https://api.github.com/users/luisgreg99/following{/other_user}","gists_url":"https://api.github.com/users/luisgreg99/gists{/gist_id}","starred_url":"https://api.github.com/users/luisgreg99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisgreg99/subscriptions","organizations_url":"https://api.github.com/users/luisgreg99/orgs","repos_url":"https://api.github.com/users/luisgreg99/repos","events_url":"https://api.github.com/users/luisgreg99/events{/privacy}","received_events_url":"https://api.github.com/users/luisgreg99/received_events","type":"User","site_admin":false},"body":"I was using `blank?` to display the message only for anonymous users, should I use `unless` instead of blank?\r\n```\r\nunless current_user\r\n  document_list.present? && document_list.first[\"suppressed_bsi\"]\r\nend\r\n```","created_at":"2016-11-15T03:45:54Z","updated_at":"2016-11-15T03:45:54Z","html_url":"https://github.com/projecthydra/curation_concerns/pull/1080#discussion_r87943402","pull_request_url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080","_links":{"self":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/comments/87943402"},"html":{"href":"https://github.com/projecthydra/curation_concerns/pull/1080#discussion_r87943402"},"pull_request":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080","id":92433979,"html_url":"https://github.com/projecthydra/curation_concerns/pull/1080","diff_url":"https://github.com/projecthydra/curation_concerns/pull/1080.diff","patch_url":"https://github.com/projecthydra/curation_concerns/pull/1080.patch","issue_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues/1080","number":1080,"state":"open","locked":false,"title":"Workflow alert for suppressed items","user":{"login":"luisgreg99","id":3486120,"avatar_url":"https://avatars.githubusercontent.com/u/3486120?v=3","gravatar_id":"","url":"https://api.github.com/users/luisgreg99","html_url":"https://github.com/luisgreg99","followers_url":"https://api.github.com/users/luisgreg99/followers","following_url":"https://api.github.com/users/luisgreg99/following{/other_user}","gists_url":"https://api.github.com/users/luisgreg99/gists{/gist_id}","starred_url":"https://api.github.com/users/luisgreg99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisgreg99/subscriptions","organizations_url":"https://api.github.com/users/luisgreg99/orgs","repos_url":"https://api.github.com/users/luisgreg99/repos","events_url":"https://api.github.com/users/luisgreg99/events{/privacy}","received_events_url":"https://api.github.com/users/luisgreg99/received_events","type":"User","site_admin":false},"body":"Fixes Sufia#2727\r\n\r\nThis PR adds an friendly alert message for the anonymous user where the item is still in its inactive state in the workflow","created_at":"2016-11-05T00:08:26Z","updated_at":"2016-11-15T03:45:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"078cebe971ed9203b658ec539ee7357759405bf0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080/commits","review_comments_url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080/comments","review_comment_url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues/1080/comments","statuses_url":"https://api.github.com/repos/projecthydra/curation_concerns/statuses/c7eb12e4df7501c67207fb668a4bc621d58643cc","head":{"label":"projecthydra:workflow_update_suppressed","ref":"workflow_update_suppressed","sha":"c7eb12e4df7501c67207fb668a4bc621d58643cc","user":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"repo":{"id":35563024,"name":"curation_concerns","full_name":"projecthydra/curation_concerns","owner":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra/curation_concerns","description":"A Hydra-based Rails Engine that extends an application, adding the ability to Create, Read, Update and Destroy (CRUD) objects (based on Hydra::Works) and providing a generator for defining object types with custom workflows, views, access controls, etc.","fork":false,"url":"https://api.github.com/repos/projecthydra/curation_concerns","forks_url":"https://api.github.com/repos/projecthydra/curation_concerns/forks","keys_url":"https://api.github.com/repos/projecthydra/curation_concerns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra/curation_concerns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra/curation_concerns/teams","hooks_url":"https://api.github.com/repos/projecthydra/curation_concerns/hooks","issue_events_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra/curation_concerns/events","assignees_url":"https://api.github.com/repos/projecthydra/curation_concerns/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra/curation_concerns/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra/curation_concerns/tags","blobs_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra/curation_concerns/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra/curation_concerns/languages","stargazers_url":"https://api.github.com/repos/projecthydra/curation_concerns/stargazers","contributors_url":"https://api.github.com/repos/projecthydra/curation_concerns/contributors","subscribers_url":"https://api.github.com/repos/projecthydra/curation_concerns/subscribers","subscription_url":"https://api.github.com/repos/projecthydra/curation_concerns/subscription","commits_url":"https://api.github.com/repos/projecthydra/curation_concerns/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra/curation_concerns/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra/curation_concerns/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra/curation_concerns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra/curation_concerns/merges","archive_url":"https://api.github.com/repos/projecthydra/curation_concerns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra/curation_concerns/downloads","issues_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra/curation_concerns/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra/curation_concerns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra/curation_concerns/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra/curation_concerns/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra/curation_concerns/deployments","created_at":"2015-05-13T17:17:45Z","updated_at":"2016-10-25T05:58:50Z","pushed_at":"2016-11-15T03:42:11Z","git_url":"git://github.com/projecthydra/curation_concerns.git","ssh_url":"git@github.com:projecthydra/curation_concerns.git","clone_url":"https://github.com/projecthydra/curation_concerns.git","svn_url":"https://github.com/projecthydra/curation_concerns","homepage":"","size":4927,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":79,"forks":23,"open_issues":79,"watchers":11,"default_branch":"master"}},"base":{"label":"projecthydra:master","ref":"master","sha":"0059e31287ade940a3c5fdb24e60122ca187605d","user":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"repo":{"id":35563024,"name":"curation_concerns","full_name":"projecthydra/curation_concerns","owner":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra/curation_concerns","description":"A Hydra-based Rails Engine that extends an application, adding the ability to Create, Read, Update and Destroy (CRUD) objects (based on Hydra::Works) and providing a generator for defining object types with custom workflows, views, access controls, etc.","fork":false,"url":"https://api.github.com/repos/projecthydra/curation_concerns","forks_url":"https://api.github.com/repos/projecthydra/curation_concerns/forks","keys_url":"https://api.github.com/repos/projecthydra/curation_concerns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra/curation_concerns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra/curation_concerns/teams","hooks_url":"https://api.github.com/repos/projecthydra/curation_concerns/hooks","issue_events_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra/curation_concerns/events","assignees_url":"https://api.github.com/repos/projecthydra/curation_concerns/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra/curation_concerns/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra/curation_concerns/tags","blobs_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra/curation_concerns/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra/curation_concerns/languages","stargazers_url":"https://api.github.com/repos/projecthydra/curation_concerns/stargazers","contributors_url":"https://api.github.com/repos/projecthydra/curation_concerns/contributors","subscribers_url":"https://api.github.com/repos/projecthydra/curation_concerns/subscribers","subscription_url":"https://api.github.com/repos/projecthydra/curation_concerns/subscription","commits_url":"https://api.github.com/repos/projecthydra/curation_concerns/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra/curation_concerns/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra/curation_concerns/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra/curation_concerns/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra/curation_concerns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra/curation_concerns/merges","archive_url":"https://api.github.com/repos/projecthydra/curation_concerns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra/curation_concerns/downloads","issues_url":"https://api.github.com/repos/projecthydra/curation_concerns/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra/curation_concerns/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra/curation_concerns/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra/curation_concerns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra/curation_concerns/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra/curation_concerns/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra/curation_concerns/deployments","created_at":"2015-05-13T17:17:45Z","updated_at":"2016-10-25T05:58:50Z","pushed_at":"2016-11-15T03:42:11Z","git_url":"git://github.com/projecthydra/curation_concerns.git","ssh_url":"git@github.com:projecthydra/curation_concerns.git","clone_url":"https://github.com/projecthydra/curation_concerns.git","svn_url":"https://github.com/projecthydra/curation_concerns","homepage":"","size":4927,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":79,"forks":23,"open_issues":79,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080"},"html":{"href":"https://github.com/projecthydra/curation_concerns/pull/1080"},"issue":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/issues/1080"},"comments":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/issues/1080/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/pulls/1080/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra/curation_concerns/statuses/c7eb12e4df7501c67207fb668a4bc621d58643cc"}}}}
{"actor":{"display_login":"luisgreg99"}}