...
To manage Roles and Abilities, you need to have the ability to update the Role model. If you have this permission, the option "User Roles" should be available when you click on your name in the top right corner.
You will be redirected to the standard Interface for managing, where you can create, edit and delete Roles (see Base MVC). The 3 columns will show the name, the rank and the description of the role. The rank is an indicator of how much "power" a role has
...
Assigning the Admin Role to an existing User without the GUI
Info |
---|
Please make sure the chosen User is logged out during the process. |
When the system is fresh or you want to quickly make a User "admin", we prepared a console command to automate this task.
Just execute the command and fill in the login name of the user you want to "promote".
Info |
---|
Please make sure the chosen User is logged out during the process. |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
php artisan auth:admin [ login name ] |
...
Warning | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
Abilities determine which permissions the Users with the desired role have. They are roughly devided divided into two groups. First, custom abilities, which contain special abilities to speed up the set up process or set permissions, for non-entity related properties. The second group are abilities that are bound to a database model.
This panel uses AJAX Requests to be more interactive and update Permissions without a Page reload. If you change something inside the panel, the Changes will affect the User Interface immediately. The Changes are temporary, but if you click on "Save", the changes for that entity will persist. There are "Save" buttons for Modules (which save all changes made for that module) and if a single entity is changed it will display its own "Save" button.
Custom Abilities
The Custom Abilities tab contains abilities to make setting up authorization a lot easier or to grant special abilities. The first Ability ("all abilities") is a super set and determines if you allow or forbid abilities by checking them. This is indicated by a red or green badge. If you are unsure, you can hover over the question mark to get more information on what this ability does.
All Abilities
Info | ||
---|---|---|
| ||
If "All Abilities" is checked, all abilities are allowed, except those that are checked. If "All Abilities" is not checked, only the checked abilities are allowed. If you change "All Abilities" and "Save" - all Entities are saved with the corresponding properties. |
Model Abilities
Warning | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...