Settings#
On the Extensions page, click Settings next to Staff Permissions.
| Setting | Default | What it does |
|---|---|---|
| Administrators without a role | Keep full access | See How access works |
| Make users administrators when they get a role | On | Turns the administrator flag on when a user gets a role, and off again when it is taken away |
Commands#
Run these in the folder of your panel:
| Command | What it does |
|---|---|
php artisan staff-permissions:roles |
Lists the roles with their ID, users and number of permissions |
php artisan staff-permissions:assign <user> <role> |
Gives a user a role. <user> is the ID, username or email, <role> the ID or name. |
php artisan staff-permissions:assign <user> none |
Takes the role away |
The command also works for your own account, so use it to give yourself the first role.
Data#
Roles are stored in staff_roles and the roles of users in staff_assignments. Removing the extension keeps them, so the roles are back when you install it again.