mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 03:12:01 +03:00
Root Admin role can be duplicated #188
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HirziDevs on GitHub (Oct 28, 2024).
Originally assigned to: @Boy132 on GitHub.
Current Behavior
Creating an administrator user using the command
php artisan p:user:makewill create another Root Admin role in the panel.Original Root Admin role
Duplicated Root Admin Role
The duplicated Root Admin role can be assigned to users, unlike the original Root Admin role.
Expected Behavior
It should use the existing Root Admin role instead of creating a new one.
Steps to Reproduce
php artisan p:user:makein the/var/www/pelicandirectoryPanel Version
v1.0.0-beta11
Wings Version
v1.0.0-beta6
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
No response
Is there an existing issue for this?
@rmartinoscar commented on GitHub (Oct 28, 2024):
Couldn't reproduce
@HirziDevs commented on GitHub (Oct 29, 2024):
If I remember correctly, this happened when I was testing the API for roles and accidentally removed the original root admin role from my account. I had to create another admin account using
php artisan p:user:make. After logging in with the new admin user, I noticed that there were two root admin roles.@Boy132 commented on GitHub (Oct 29, 2024):
@HirziDevs Could you check your database and see what value the
guard_namecolumn of the two root admin roles has?@HirziDevs commented on GitHub (Oct 29, 2024):
@Boy132 The guard_name is
sanctumand the original isweb@rmartinoscar commented on GitHub (Oct 29, 2024):
You can remove it via
This will unassign any duplicate role to every user and remove that said role.
If for whatever reason you want multiple users with rootadmin then use this instead: