{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/issues/785","repository_url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/issues/785/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/issues/785/events","html_url":"https://github.com/silverstripe/silverstripe-asset-admin/issues/785","id":324907949,"node_id":"MDU6SXNzdWUzMjQ5MDc5NDk=","number":785,"title":"UploadField only shows view button when parent record is editable?","user":{"login":"mlewis-everley","id":687143,"node_id":"MDQ6VXNlcjY4NzE0Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/687143?v=4","gravatar_id":"","url":"https://api.github.com/users/mlewis-everley","html_url":"https://github.com/mlewis-everley","followers_url":"https://api.github.com/users/mlewis-everley/followers","following_url":"https://api.github.com/users/mlewis-everley/following{/other_user}","gists_url":"https://api.github.com/users/mlewis-everley/gists{/gist_id}","starred_url":"https://api.github.com/users/mlewis-everley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlewis-everley/subscriptions","organizations_url":"https://api.github.com/users/mlewis-everley/orgs","repos_url":"https://api.github.com/users/mlewis-everley/repos","events_url":"https://api.github.com/users/mlewis-everley/events{/privacy}","received_events_url":"https://api.github.com/users/mlewis-everley/received_events","type":"User","site_admin":false},"labels":[{"id":447235866,"node_id":"MDU6TGFiZWw0NDcyMzU4NjY=","url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/labels/affects/v4","name":"affects/v4","color":"5319e7","default":false},{"id":386754541,"node_id":"MDU6TGFiZWwzODY3NTQ1NDE=","url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/labels/effort/medium","name":"effort/medium","color":"fef2c0","default":false},{"id":386754883,"node_id":"MDU6TGFiZWwzODY3NTQ4ODM=","url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/labels/impact/low","name":"impact/low","color":"fef2c0","default":false},{"id":565307673,"node_id":"MDU6TGFiZWw1NjUzMDc2NzM=","url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/labels/type/UX","name":"type/UX","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-21T13:01:59Z","updated_at":"2018-08-06T05:11:55Z","closed_at":null,"author_association":"NONE","body":"I have an `Event` object, that can have `many_many` `Attachments` (each of which is a `file`)\r\n\r\nI have a user with permission to view `Event` (but not edit)\r\n\r\nThe user can see the `UploadField` but not the view button (the little eyeball icon)\r\n\r\nI have traced this to here: https://github.com/silverstripe/silverstripe-asset-admin/blob/1.0/client/src/components/UploadField/UploadFieldItem.js#L266\r\n\r\nIs this right? A user cannot see the \"View Button\" if they cannot edit?"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/issues/comments/410590655","html_url":"https://github.com/silverstripe/silverstripe-asset-admin/issues/785#issuecomment-410590655","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-asset-admin/issues/785","id":410590655,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDU5MDY1NQ==","user":{"login":"clarkepaul","id":555033,"node_id":"MDQ6VXNlcjU1NTAzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/555033?v=4","gravatar_id":"","url":"https://api.github.com/users/clarkepaul","html_url":"https://github.com/clarkepaul","followers_url":"https://api.github.com/users/clarkepaul/followers","following_url":"https://api.github.com/users/clarkepaul/following{/other_user}","gists_url":"https://api.github.com/users/clarkepaul/gists{/gist_id}","starred_url":"https://api.github.com/users/clarkepaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarkepaul/subscriptions","organizations_url":"https://api.github.com/users/clarkepaul/orgs","repos_url":"https://api.github.com/users/clarkepaul/repos","events_url":"https://api.github.com/users/clarkepaul/events{/privacy}","received_events_url":"https://api.github.com/users/clarkepaul/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T05:11:55Z","updated_at":"2018-08-06T05:11:55Z","author_association":"MEMBER","body":"Agree we need a readonly view, we need to get some designs going to nut out the edge cases, maybe its just a smaller modal with the essentials rather than the whole Files area modal."}}
{"actor":{"display_login":"clarkepaul"}}