{"action":"closed","issue":{"url":"https://api.github.com/repos/the-control-group/voyager/issues/3088","repository_url":"https://api.github.com/repos/the-control-group/voyager","labels_url":"https://api.github.com/repos/the-control-group/voyager/issues/3088/labels{/name}","comments_url":"https://api.github.com/repos/the-control-group/voyager/issues/3088/comments","events_url":"https://api.github.com/repos/the-control-group/voyager/issues/3088/events","html_url":"https://github.com/the-control-group/voyager/issues/3088","id":318647216,"number":3088,"title":"'Permission does not exist', 400","user":{"login":"rddewan","id":13164167,"avatar_url":"https://avatars1.githubusercontent.com/u/13164167?v=4","gravatar_id":"","url":"https://api.github.com/users/rddewan","html_url":"https://github.com/rddewan","followers_url":"https://api.github.com/users/rddewan/followers","following_url":"https://api.github.com/users/rddewan/following{/other_user}","gists_url":"https://api.github.com/users/rddewan/gists{/gist_id}","starred_url":"https://api.github.com/users/rddewan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rddewan/subscriptions","organizations_url":"https://api.github.com/users/rddewan/orgs","repos_url":"https://api.github.com/users/rddewan/repos","events_url":"https://api.github.com/users/rddewan/events{/privacy}","received_events_url":"https://api.github.com/users/rddewan/received_events","type":"User","site_admin":false},"labels":[{"id":469741888,"url":"https://api.github.com/repos/the-control-group/voyager/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-28T15:52:08Z","updated_at":"2018-04-30T19:45:41Z","closed_at":"2018-04-30T19:45:41Z","author_association":"NONE","body":"- Laravel Version:  5.6.18\r\n- Voyager Version: 1.1.0\r\n- PHP Version:7.1.10\r\n- Database Driver & Version:MySQL 5.7.19\r\n\r\n### Description:\r\nI can only brows the default BREAD but cant not edit\r\nI can not Add or Edit the BREAD  for any taable\r\n\r\n```\r\n/** @deprecated */\r\n    public function can($permission)\r\n    {\r\n        $this->loadPermissions();\r\n \r\n        // Check if permission exist\r\n        $exist = $this->permissions->where('key', $permission)->first();\r\n \r\n        // Permission not found\r\n        if (!$exist) {\r\n            throw new \\Exception('Permission does not exist', 400);\r\n        }\r\n \r\n        $user = $this->getUser();\r\n        if ($user == null || !$user->hasPermission($permission)) {\r\n            return false;\r\n        }\r\n \r\n        return true;\r\n    }\r\n \r\n    /** @deprecated */\r\n    public function canOrFail($permission)\r\n```\r\n\r\n   \"Permission does not exist\"\r\n### Steps To Reproduce:\r\n"}}
{"actor":{"display_login":"fletch3555"}}