{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/comments/45272460","id":45272460,"diff_hunk":"@@ -21,27 +21,27 @@ module FilesControllerBehavior\n       copy_blacklight_config_from(CatalogController)\n \n       # Catch permission errors\n-      rescue_from Hydra::AccessDenied, CanCan::AccessDenied do |exception|\n-        if exception.action == :edit\n-          redirect_to(sufia.url_for(action: 'show'), alert: \"You do not have sufficient privileges to edit this document\")\n-        elsif current_user && current_user.persisted?\n-          redirect_to root_url, alert: exception.message\n-        else\n-          session[\"user_return_to\"] = request.url\n-          redirect_to new_user_session_url, alert: exception.message\n-        end\n-      end\n+      # rescue_from Hydra::AccessDenied, CanCan::AccessDenied do |exception|","path":"app/controllers/concerns/sufia/files_controller_behavior.rb","position":14,"original_position":14,"commit_id":"5e0bba2e63d6a4537a89fc13d8e8e9bdd78df8dc","original_commit_id":"5e0bba2e63d6a4537a89fc13d8e8e9bdd78df8dc","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"body":"Yes, CC is doing most of this, but I'm not sure it's exactly like we want it. I left this in here as a breadcrumb for anyone who's working on those stories.","created_at":"2015-11-18T22:42:53Z","updated_at":"2015-11-18T22:42:53Z","html_url":"https://github.com/projecthydra-labs/sufia-core/pull/238#discussion_r45272460","pull_request_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/comments/45272460"},"html":{"href":"https://github.com/projecthydra-labs/sufia-core/pull/238#discussion_r45272460"},"pull_request":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238","id":51109180,"html_url":"https://github.com/projecthydra-labs/sufia-core/pull/238","diff_url":"https://github.com/projecthydra-labs/sufia-core/pull/238.diff","patch_url":"https://github.com/projecthydra-labs/sufia-core/pull/238.patch","issue_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/238","number":238,"state":"open","locked":false,"title":"Merge the FileSetsControllers from Sufia and CurationConcerns","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-18T16:44:22Z","updated_at":"2015-11-18T22:42:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"556a5709596545201bd34ac4a03a50f9a65b8083","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238/commits","review_comments_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238/comments","review_comment_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/238/comments","statuses_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/statuses/5e0bba2e63d6a4537a89fc13d8e8e9bdd78df8dc","head":{"label":"projecthydra-labs:merge_file_set","ref":"merge_file_set","sha":"5e0bba2e63d6a4537a89fc13d8e8e9bdd78df8dc","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":36519040,"name":"sufia-core","full_name":"projecthydra-labs/sufia-core","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/sufia-core","description":"Sufia is a Rails engine for creating a self-deposit institutional repository. A web application for ingest, curation, search, and display of digital assets. Powered by Hydra technologies (Rails, Hydra-head, Blacklight, Solr, Fedora Commons, etc.)","fork":true,"url":"https://api.github.com/repos/projecthydra-labs/sufia-core","forks_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/releases{/id}","created_at":"2015-05-29T17:29:18Z","updated_at":"2015-10-22T14:13:25Z","pushed_at":"2015-11-18T22:08:02Z","git_url":"git://github.com/projecthydra-labs/sufia-core.git","ssh_url":"git@github.com:projecthydra-labs/sufia-core.git","clone_url":"https://github.com/projecthydra-labs/sufia-core.git","svn_url":"https://github.com/projecthydra-labs/sufia-core","homepage":"","size":52939,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":54,"forks":3,"open_issues":54,"watchers":1,"default_branch":"master"}},"base":{"label":"projecthydra-labs:master","ref":"master","sha":"c07769054fd4f2b43b02fe7f4e01b3ef317def94","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":36519040,"name":"sufia-core","full_name":"projecthydra-labs/sufia-core","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/sufia-core","description":"Sufia is a Rails engine for creating a self-deposit institutional repository. A web application for ingest, curation, search, and display of digital assets. Powered by Hydra technologies (Rails, Hydra-head, Blacklight, Solr, Fedora Commons, etc.)","fork":true,"url":"https://api.github.com/repos/projecthydra-labs/sufia-core","forks_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/sufia-core/releases{/id}","created_at":"2015-05-29T17:29:18Z","updated_at":"2015-10-22T14:13:25Z","pushed_at":"2015-11-18T22:08:02Z","git_url":"git://github.com/projecthydra-labs/sufia-core.git","ssh_url":"git@github.com:projecthydra-labs/sufia-core.git","clone_url":"https://github.com/projecthydra-labs/sufia-core.git","svn_url":"https://github.com/projecthydra-labs/sufia-core","homepage":"","size":52939,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":54,"forks":3,"open_issues":54,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238"},"html":{"href":"https://github.com/projecthydra-labs/sufia-core/pull/238"},"issue":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/238"},"comments":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra-labs/sufia-core/statuses/5e0bba2e63d6a4537a89fc13d8e8e9bdd78df8dc"}}}}