eminiarts / nova-permissions

Laravel Nova Grouped Permissions
126 stars 65 forks source link

Exception: There is no permission named `view countries` for guard `web`. #13

Open 4n70w4 opened 5 years ago

4n70w4 commented 5 years ago

May be by default need to use [denied] instead throw exception if permission not declared.

image

fissible commented 5 years ago

There is no permission namedACCESSfor guardweb``

You are able to choose the guard when adding a permission, but if you choose one that is not the default you will be the above error when you attempt to give a Permission to a Role (on the Update Role screen).

4n70w4 commented 5 years ago

The exception should be catch, and not throw an exception in the application. Plugins should not break the main application.