thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

[BUG] #4090

Closed ghost closed 5 years ago

ghost commented 5 years ago

Version information

Description

After registering new user. Admin is able to control that user's role and permission but admin is able to edit super user already in the users table or may provide self or to any user the role of super user which should not be done. Please explain this or with code how can I achieve that. I am new to Laravel.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Dashboard'
  2. Click on 'Users Menu'
  3. Click on Edit or Delete
  4. See If admin is login, admin not able to edit,delete super user also admin must not be able to provide self or to any user super user role.

Expected behavior

User table displaying all users, admin, super user. So if admin is login admin is not able to provide any other user or to self the role of super user or delete super user. But Super user can do everything only admin is restricted to super role.

Screenshots

If applicable, add screenshots to help explain your problem. 1 2

Additional context

NO, please just help me out of the above problem.

emptynick commented 5 years ago

Not a bug. You already asked in our Slack group and will get help there.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.