{"action":"created","comment":{"url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/comments/27905070","id":27905070,"diff_hunk":"@@ -0,0 +1,22 @@\n+module My\n+  class SharesController < MyController\n+\n+    self.search_params_logic = [\n+      :show_only_shared_files,\n+      :show_only_generic_files\n+    ] + self.search_params_logic\n+","path":"app/controllers/my/shares_controller.rb","position":8,"original_position":8,"commit_id":"28287c1c8637178e99c6a7a8fdfca4aa5fbee1f6","original_commit_id":"28287c1c8637178e99c6a7a8fdfca4aa5fbee1f6","user":{"login":"cam156","id":1599081,"avatar_url":"https://avatars.githubusercontent.com/u/1599081?v=3","gravatar_id":"","url":"https://api.github.com/users/cam156","html_url":"https://github.com/cam156","followers_url":"https://api.github.com/users/cam156/followers","following_url":"https://api.github.com/users/cam156/following{/other_user}","gists_url":"https://api.github.com/users/cam156/gists{/gist_id}","starred_url":"https://api.github.com/users/cam156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam156/subscriptions","organizations_url":"https://api.github.com/users/cam156/orgs","repos_url":"https://api.github.com/users/cam156/repos","events_url":"https://api.github.com/users/cam156/events{/privacy}","received_events_url":"https://api.github.com/users/cam156/received_events","type":"User","site_admin":false},"body":"@awead @mjgiarlo I'm not certain this is a the long term fix.  I think that allowing the search builder to be assigned a access_level would be the best way, but I could not determine how to accomplish that.  This is an interim solution to patch the fact that blacklight was changed and now our code does not work.","created_at":"2015-04-07T18:17:55Z","updated_at":"2015-04-07T18:17:55Z","html_url":"https://github.com/psu-stewardship/scholarsphere/pull/117#discussion_r27905070","pull_request_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/comments/27905070"},"html":{"href":"https://github.com/psu-stewardship/scholarsphere/pull/117#discussion_r27905070"},"pull_request":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117","id":32780847,"html_url":"https://github.com/psu-stewardship/scholarsphere/pull/117","diff_url":"https://github.com/psu-stewardship/scholarsphere/pull/117.diff","patch_url":"https://github.com/psu-stewardship/scholarsphere/pull/117.patch","issue_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/117","number":117,"state":"open","locked":false,"title":"Setting edit access for shares so we only see files the user has edit ac...","user":{"login":"cam156","id":1599081,"avatar_url":"https://avatars.githubusercontent.com/u/1599081?v=3","gravatar_id":"","url":"https://api.github.com/users/cam156","html_url":"https://github.com/cam156","followers_url":"https://api.github.com/users/cam156/followers","following_url":"https://api.github.com/users/cam156/following{/other_user}","gists_url":"https://api.github.com/users/cam156/gists{/gist_id}","starred_url":"https://api.github.com/users/cam156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam156/subscriptions","organizations_url":"https://api.github.com/users/cam156/orgs","repos_url":"https://api.github.com/users/cam156/repos","events_url":"https://api.github.com/users/cam156/events{/privacy}","received_events_url":"https://api.github.com/users/cam156/received_events","type":"User","site_admin":false},"body":"...cess to.  fixes #94 \r\n\r\nAdding overrides to searchbuilder to add edit filter (self.discovery_perms = [:edit]) to show_only_shared_files\r\n\r\nAdding shares_controller to change the order of the solr filers so the only_shares comes before the access control ones","created_at":"2015-04-07T16:26:26Z","updated_at":"2015-04-07T18:17:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76d0ff96b93093ccd13df4f6324a7ee7c418914e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117/commits","review_comments_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117/comments","review_comment_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/comments{/number}","comments_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/117/comments","statuses_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/statuses/28287c1c8637178e99c6a7a8fdfca4aa5fbee1f6","head":{"label":"psu-stewardship:fix_94","ref":"fix_94","sha":"28287c1c8637178e99c6a7a8fdfca4aa5fbee1f6","user":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"repo":{"id":2481963,"name":"scholarsphere","full_name":"psu-stewardship/scholarsphere","owner":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/psu-stewardship/scholarsphere","description":"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":false,"url":"https://api.github.com/repos/psu-stewardship/scholarsphere","forks_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/forks","keys_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/teams","hooks_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/hooks","issue_events_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/events{/number}","events_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/events","assignees_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/assignees{/user}","branches_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/branches{/branch}","tags_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/tags","blobs_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/refs{/sha}","trees_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/statuses/{sha}","languages_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/languages","stargazers_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/stargazers","contributors_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/contributors","subscribers_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/subscribers","subscription_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/subscription","commits_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/commits{/sha}","git_commits_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/commits{/sha}","comments_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/comments{/number}","issue_comment_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/comments{/number}","contents_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/contents/{+path}","compare_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/merges","archive_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/downloads","issues_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues{/number}","pulls_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls{/number}","milestones_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/milestones{/number}","notifications_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/labels{/name}","releases_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/releases{/id}","created_at":"2011-09-29T13:12:23Z","updated_at":"2015-04-07T16:00:55Z","pushed_at":"2015-04-07T16:26:27Z","git_url":"git://github.com/psu-stewardship/scholarsphere.git","ssh_url":"git@github.com:psu-stewardship/scholarsphere.git","clone_url":"https://github.com/psu-stewardship/scholarsphere.git","svn_url":"https://github.com/psu-stewardship/scholarsphere","homepage":"","size":103560,"stargazers_count":47,"watchers_count":47,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":17,"forks":12,"open_issues":17,"watchers":47,"default_branch":"develop"}},"base":{"label":"psu-stewardship:develop","ref":"develop","sha":"698784efe27d6656777a5c006dac00a7996d000d","user":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"repo":{"id":2481963,"name":"scholarsphere","full_name":"psu-stewardship/scholarsphere","owner":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/psu-stewardship/scholarsphere","description":"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":false,"url":"https://api.github.com/repos/psu-stewardship/scholarsphere","forks_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/forks","keys_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/teams","hooks_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/hooks","issue_events_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/events{/number}","events_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/events","assignees_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/assignees{/user}","branches_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/branches{/branch}","tags_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/tags","blobs_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/refs{/sha}","trees_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/statuses/{sha}","languages_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/languages","stargazers_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/stargazers","contributors_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/contributors","subscribers_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/subscribers","subscription_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/subscription","commits_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/commits{/sha}","git_commits_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/git/commits{/sha}","comments_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/comments{/number}","issue_comment_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/comments{/number}","contents_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/contents/{+path}","compare_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/merges","archive_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/downloads","issues_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues{/number}","pulls_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls{/number}","milestones_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/milestones{/number}","notifications_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/labels{/name}","releases_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/releases{/id}","created_at":"2011-09-29T13:12:23Z","updated_at":"2015-04-07T16:00:55Z","pushed_at":"2015-04-07T16:26:27Z","git_url":"git://github.com/psu-stewardship/scholarsphere.git","ssh_url":"git@github.com:psu-stewardship/scholarsphere.git","clone_url":"https://github.com/psu-stewardship/scholarsphere.git","svn_url":"https://github.com/psu-stewardship/scholarsphere","homepage":"","size":103560,"stargazers_count":47,"watchers_count":47,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":17,"forks":12,"open_issues":17,"watchers":47,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117"},"html":{"href":"https://github.com/psu-stewardship/scholarsphere/pull/117"},"issue":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/117"},"comments":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/psu-stewardship/scholarsphere/statuses/28287c1c8637178e99c6a7a8fdfca4aa5fbee1f6"}}}}