{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/nova-issues/issues/595","repository_url":"https://api.github.com/repos/laravel/nova-issues","labels_url":"https://api.github.com/repos/laravel/nova-issues/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/laravel/nova-issues/issues/595/comments","events_url":"https://api.github.com/repos/laravel/nova-issues/issues/595/events","html_url":"https://github.com/laravel/nova-issues/issues/595","id":361370806,"node_id":"MDU6SXNzdWUzNjEzNzA4MDY=","number":595,"title":"View policy does not stop row being displayed","user":{"login":"unlikenesses","id":12985726,"node_id":"MDQ6VXNlcjEyOTg1NzI2","avatar_url":"https://avatars1.githubusercontent.com/u/12985726?v=4","gravatar_id":"","url":"https://api.github.com/users/unlikenesses","html_url":"https://github.com/unlikenesses","followers_url":"https://api.github.com/users/unlikenesses/followers","following_url":"https://api.github.com/users/unlikenesses/following{/other_user}","gists_url":"https://api.github.com/users/unlikenesses/gists{/gist_id}","starred_url":"https://api.github.com/users/unlikenesses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlikenesses/subscriptions","organizations_url":"https://api.github.com/users/unlikenesses/orgs","repos_url":"https://api.github.com/users/unlikenesses/repos","events_url":"https://api.github.com/users/unlikenesses/events{/privacy}","received_events_url":"https://api.github.com/users/unlikenesses/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-18T15:49:21Z","updated_at":"2018-09-18T15:49:21Z","closed_at":null,"author_association":"NONE","body":"Nova 1.0.15. I have a list of Users. I want all users to be displayed in this table except users with a `role` of `foo`. So I create a `UserPolicy`:\r\n\r\n    public function view(User $user, User $model)\r\n    {\r\n        return $model->role !== 'foo';\r\n    }\r\n\r\nThis does indeed stop me from clicking through to view users of type `foo`, but they still appear in the list. I would expect them to be invisible in the list. Is there any way to do this?"}}
{"actor":{"display_login":"unlikenesses"}}