{"action":"created","issue":{"url":"https://api.github.com/repos/projecthydra/sufia/issues/2407","repository_url":"https://api.github.com/repos/projecthydra/sufia","labels_url":"https://api.github.com/repos/projecthydra/sufia/issues/2407/labels{/name}","comments_url":"https://api.github.com/repos/projecthydra/sufia/issues/2407/comments","events_url":"https://api.github.com/repos/projecthydra/sufia/issues/2407/events","html_url":"https://github.com/projecthydra/sufia/issues/2407","id":169981537,"number":2407,"title":"When creating a work I can choose anyone's collection","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},"labels":[{"url":"https://api.github.com/repos/projecthydra/sufia/labels/blocker","name":"blocker","color":"b60205"},{"url":"https://api.github.com/repos/projecthydra/sufia/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/projecthydra/sufia/labels/collections","name":"collections","color":"0b02e1"},{"url":"https://api.github.com/repos/projecthydra/sufia/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"atz","id":109954,"avatar_url":"https://avatars.githubusercontent.com/u/109954?v=3","gravatar_id":"","url":"https://api.github.com/users/atz","html_url":"https://github.com/atz","followers_url":"https://api.github.com/users/atz/followers","following_url":"https://api.github.com/users/atz/following{/other_user}","gists_url":"https://api.github.com/users/atz/gists{/gist_id}","starred_url":"https://api.github.com/users/atz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atz/subscriptions","organizations_url":"https://api.github.com/users/atz/orgs","repos_url":"https://api.github.com/users/atz/repos","events_url":"https://api.github.com/users/atz/events{/privacy}","received_events_url":"https://api.github.com/users/atz/received_events","type":"User","site_admin":false},"assignees":[{"login":"atz","id":109954,"avatar_url":"https://avatars.githubusercontent.com/u/109954?v=3","gravatar_id":"","url":"https://api.github.com/users/atz","html_url":"https://github.com/atz","followers_url":"https://api.github.com/users/atz/followers","following_url":"https://api.github.com/users/atz/following{/other_user}","gists_url":"https://api.github.com/users/atz/gists{/gist_id}","starred_url":"https://api.github.com/users/atz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atz/subscriptions","organizations_url":"https://api.github.com/users/atz/orgs","repos_url":"https://api.github.com/users/atz/repos","events_url":"https://api.github.com/users/atz/events{/privacy}","received_events_url":"https://api.github.com/users/atz/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/projecthydra/sufia/milestones/16","html_url":"https://github.com/projecthydra/sufia/milestones/7.2.0","labels_url":"https://api.github.com/repos/projecthydra/sufia/milestones/16/labels","id":1916846,"number":16,"title":"7.2.0","description":"","creator":{"login":"mjgiarlo","id":131982,"avatar_url":"https://avatars.githubusercontent.com/u/131982?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgiarlo","html_url":"https://github.com/mjgiarlo","followers_url":"https://api.github.com/users/mjgiarlo/followers","following_url":"https://api.github.com/users/mjgiarlo/following{/other_user}","gists_url":"https://api.github.com/users/mjgiarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgiarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgiarlo/subscriptions","organizations_url":"https://api.github.com/users/mjgiarlo/orgs","repos_url":"https://api.github.com/users/mjgiarlo/repos","events_url":"https://api.github.com/users/mjgiarlo/events{/privacy}","received_events_url":"https://api.github.com/users/mjgiarlo/received_events","type":"User","site_admin":false},"open_issues":106,"closed_issues":5,"state":"open","created_at":"2016-08-01T21:14:44Z","updated_at":"2016-08-12T21:24:52Z","due_on":"2016-09-03T07:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-08T17:40:40Z","updated_at":"2016-08-12T21:57:21Z","closed_at":null,"body":"### Descriptive summary\r\n\r\nIn sufia 7 when I create a work I get a listing of everyone's collections including ones I do not have access to in the relationships tab.\r\n\r\n### Expected behavior\r\n\r\nI should see only collections I have edit access to.\r\n\r\n### Actual behavior\r\n\r\nMy Collections\r\n![screen shot 2016-08-08 at 10 56 08 am](https://cloud.githubusercontent.com/assets/1599081/17489736/9317caa0-5d6d-11e6-9b31-9c57389afa7f.png)\r\n\r\nI see everyone's collections\r\n![screen shot 2016-08-08 at 10 55 53 am](https://cloud.githubusercontent.com/assets/1599081/17489745/9c74bd60-5d6d-11e6-95db-8a05c5b797d5.png)"},"comment":{"url":"https://api.github.com/repos/projecthydra/sufia/issues/comments/239569573","html_url":"https://github.com/projecthydra/sufia/issues/2407#issuecomment-239569573","issue_url":"https://api.github.com/repos/projecthydra/sufia/issues/2407","id":239569573,"user":{"login":"atz","id":109954,"avatar_url":"https://avatars.githubusercontent.com/u/109954?v=3","gravatar_id":"","url":"https://api.github.com/users/atz","html_url":"https://github.com/atz","followers_url":"https://api.github.com/users/atz/followers","following_url":"https://api.github.com/users/atz/following{/other_user}","gists_url":"https://api.github.com/users/atz/gists{/gist_id}","starred_url":"https://api.github.com/users/atz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atz/subscriptions","organizations_url":"https://api.github.com/users/atz/orgs","repos_url":"https://api.github.com/users/atz/repos","events_url":"https://api.github.com/users/atz/events{/privacy}","received_events_url":"https://api.github.com/users/atz/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T21:57:21Z","updated_at":"2016-08-12T21:57:21Z","body":"Seems to be populated by `available_collections(nil)`, a method that appears only that one time in Sufia.  It comes from curation concerns here:\r\nhttps://github.com/projecthydra/curation_concerns/blob/89c3c702b70754e63a6c322bcd9d53bffb4e4a1e/app/helpers/curation_concerns/collections_helper.rb#L34\r\n\r\nSomewhere in this chain seems like a good place to accept a block argument for filtering the collections.  "}}
{"actor":{"display_login":"atz"}}