novatoolpermissions icon indicating copy to clipboard operation
novatoolpermissions copied to clipboard

Permission Not working correclty

Open prakhargvp opened this issue 4 years ago • 3 comments

Hi I have two roles admin and normal user. Screenshot from 2020-05-10 16-48-42

On normal user login. It should not able to assign and edit roles. So why edit, delete icon is showing. and I'm able to detach the roles but it should not.

Screenshot from 2020-05-10 16-47-31

Screenshot from 2020-05-10 16-47-20

prakhargvp avatar May 10 '20 11:05 prakhargvp

Do you have the admin role assigned to an admin user? Unless a permission is actually assigned to a user it will fall back to allow access for anyone.

m2de avatar May 10 '20 12:05 m2de

Yes I have

Screenshot from 2020-05-10 18-47-29

Screenshot from 2020-05-10 18-45-54

prakhargvp avatar May 10 '20 13:05 prakhargvp

I've got a similar thing happening here, two roles, both defined, not all of the gates are firing for users without the permissions. The non-admin user does not even have the "Access Nova" permission so they shouldn't even be able to login to Nova, right?

*EDIT

I believe this is the default functionality for guards when environment is set to local in .env:

nova

paperscissors avatar Jun 11 '20 19:06 paperscissors