{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/nova-issues/issues/321","repository_url":"https://api.github.com/repos/laravel/nova-issues","labels_url":"https://api.github.com/repos/laravel/nova-issues/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/laravel/nova-issues/issues/321/comments","events_url":"https://api.github.com/repos/laravel/nova-issues/issues/321/events","html_url":"https://github.com/laravel/nova-issues/issues/321","id":355239571,"node_id":"MDU6SXNzdWUzNTUyMzk1NzE=","number":321,"title":"Prevent users from updating pivot table fields","user":{"login":"BengtHagemeister","id":30391176,"node_id":"MDQ6VXNlcjMwMzkxMTc2","avatar_url":"https://avatars2.githubusercontent.com/u/30391176?v=4","gravatar_id":"","url":"https://api.github.com/users/BengtHagemeister","html_url":"https://github.com/BengtHagemeister","followers_url":"https://api.github.com/users/BengtHagemeister/followers","following_url":"https://api.github.com/users/BengtHagemeister/following{/other_user}","gists_url":"https://api.github.com/users/BengtHagemeister/gists{/gist_id}","starred_url":"https://api.github.com/users/BengtHagemeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BengtHagemeister/subscriptions","organizations_url":"https://api.github.com/users/BengtHagemeister/orgs","repos_url":"https://api.github.com/users/BengtHagemeister/repos","events_url":"https://api.github.com/users/BengtHagemeister/events{/privacy}","received_events_url":"https://api.github.com/users/BengtHagemeister/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-29T16:29:14Z","updated_at":"2018-10-12T07:00:28Z","closed_at":null,"author_association":"NONE","body":"I have a pivot table role_user with an additional field notes. I want to prevent through a policy that a user can edit this notes. I cannot find an option for that. \r\n\r\nThe convention used to prevent attaching models is not working for updating.\r\n    \r\n    public function attachUser()\r\n    {\r\n      working\r\n    }\r\n\r\n    public function updateUser()\r\n    {\r\n       not working\r\n    }"},"comment":{"url":"https://api.github.com/repos/laravel/nova-issues/issues/comments/429225341","html_url":"https://github.com/laravel/nova-issues/issues/321#issuecomment-429225341","issue_url":"https://api.github.com/repos/laravel/nova-issues/issues/321","id":429225341,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTIyNTM0MQ==","user":{"login":"dkulyk","id":370042,"node_id":"MDQ6VXNlcjM3MDA0Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/370042?v=4","gravatar_id":"","url":"https://api.github.com/users/dkulyk","html_url":"https://github.com/dkulyk","followers_url":"https://api.github.com/users/dkulyk/followers","following_url":"https://api.github.com/users/dkulyk/following{/other_user}","gists_url":"https://api.github.com/users/dkulyk/gists{/gist_id}","starred_url":"https://api.github.com/users/dkulyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkulyk/subscriptions","organizations_url":"https://api.github.com/users/dkulyk/orgs","repos_url":"https://api.github.com/users/dkulyk/repos","events_url":"https://api.github.com/users/dkulyk/events{/privacy}","received_events_url":"https://api.github.com/users/dkulyk/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T07:00:28Z","updated_at":"2018-10-12T07:00:28Z","author_association":"NONE","body":"Policy applied for resources. If you need permissions for the pivot use HasManyThrough relation and a separate resource for it."}}
{"actor":{"display_login":"dkulyk"}}