{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/nova-issues/issues/593","repository_url":"https://api.github.com/repos/laravel/nova-issues","labels_url":"https://api.github.com/repos/laravel/nova-issues/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/laravel/nova-issues/issues/593/comments","events_url":"https://api.github.com/repos/laravel/nova-issues/issues/593/events","html_url":"https://github.com/laravel/nova-issues/issues/593","id":361350667,"node_id":"MDU6SXNzdWUzNjEzNTA2Njc=","number":593,"title":"Disable BelongsTo href/link if the user doesn't have access to view the target resource","user":{"login":"m2de","id":17720020,"node_id":"MDQ6VXNlcjE3NzIwMDIw","avatar_url":"https://avatars0.githubusercontent.com/u/17720020?v=4","gravatar_id":"","url":"https://api.github.com/users/m2de","html_url":"https://github.com/m2de","followers_url":"https://api.github.com/users/m2de/followers","following_url":"https://api.github.com/users/m2de/following{/other_user}","gists_url":"https://api.github.com/users/m2de/gists{/gist_id}","starred_url":"https://api.github.com/users/m2de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m2de/subscriptions","organizations_url":"https://api.github.com/users/m2de/orgs","repos_url":"https://api.github.com/users/m2de/repos","events_url":"https://api.github.com/users/m2de/events{/privacy}","received_events_url":"https://api.github.com/users/m2de/received_events","type":"User","site_admin":false},"labels":[{"id":1033247763,"node_id":"MDU6TGFiZWwxMDMzMjQ3NzYz","url":"https://api.github.com/repos/laravel/nova-issues/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-18T15:04:28Z","updated_at":"2018-12-26T18:31:29Z","closed_at":null,"author_association":"NONE","body":"Whenever I use a `BelongsTo` field, on the detail view this becomes a clickable link (Area in particular in this example)\r\n\r\n![screen shot 2018-09-18 at 15 59 33](https://user-images.githubusercontent.com/17720020/45696628-e4cf2980-bb5b-11e8-8bbe-dce37cdd5c49.png)\r\n\r\nWhile the user has permission to see the value of this entry, they do not have permissions to `view` the actual `Area` resource. So clicking the link will result in a 403 error. Nova should not make this clickable unless the user has permission to view the target resource.\r\n\r\nAlternatively one solutions would be to just provide an option on the `BelongsTo` field type to disable the click-through?\r\n\r\nMany thanks."},"comment":{"url":"https://api.github.com/repos/laravel/nova-issues/issues/comments/450005809","html_url":"https://github.com/laravel/nova-issues/issues/593#issuecomment-450005809","issue_url":"https://api.github.com/repos/laravel/nova-issues/issues/593","id":450005809,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDAwNTgwOQ==","user":{"login":"dillingham","id":29180903,"node_id":"MDQ6VXNlcjI5MTgwOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/29180903?v=4","gravatar_id":"","url":"https://api.github.com/users/dillingham","html_url":"https://github.com/dillingham","followers_url":"https://api.github.com/users/dillingham/followers","following_url":"https://api.github.com/users/dillingham/following{/other_user}","gists_url":"https://api.github.com/users/dillingham/gists{/gist_id}","starred_url":"https://api.github.com/users/dillingham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dillingham/subscriptions","organizations_url":"https://api.github.com/users/dillingham/orgs","repos_url":"https://api.github.com/users/dillingham/repos","events_url":"https://api.github.com/users/dillingham/events{/privacy}","received_events_url":"https://api.github.com/users/dillingham/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T18:31:29Z","updated_at":"2018-12-26T18:31:29Z","author_association":"CONTRIBUTOR","body":"This would also close this https://github.com/laravel/nova-issues/issues/960"}}
{"actor":{"display_login":"dillingham"}}