Setting Up User Roles
Flute CMS uses the RBAC (Role-Based Access Control) system — this is a tool for managing user access to different sections and functions of the website. The role system allows you to precisely configure who and what can do on your site.
RBAC means “Role-Based Access Control” — this is a standard approach to managing user rights in modern CMS.
To edit roles you need admin.roles
or admin.boss
permissions.
Basic Role System
What is a role?
A role is a set of permissions (access rights) that can be assigned to a user. Each role defines:
- Access to sections — which pages of the admin panel the user can see
- Possible actions — what the user can do (create, edit, delete)
- Visual display — role color and icon on the site
Role hierarchy
Roles in Flute CMS have a strict hierarchy:
- admin.boss — super administrator (full access to everything)
- User roles — created by the administrator
- user — regular user (basic rights)
The admin.boss
role has absolute power and cannot be limited by other roles!
Creating and configuring roles
Creating a new role
To create a role:
- Go to
Admin panel
→Users and roles
→Roles
- Click the
Create role
button - Fill in the basic information about the role
Basic role parameters
- Role name — any role name
- Role color — color that will be used to highlight the role on the site
- Icon — role icon
For selecting icons, all icons from FontAwesome and PhosphorIcons are automatically loaded.
Access rights system
Access rights categories
Each right has its own description of what it is responsible for.
Be careful when granting rights! Some rights may give the user the ability to change critical site settings.
Role priority and hierarchy
How priority works
The priority of roles is determined by their order in the list:
- Highest priority — roles at the top of the list
- Lowest priority — roles at the bottom of the list
A user with a higher priority role can manage users with lower priority roles.
Changing priority
To change the priority of a role:
- Go to the list of roles
- Drag the role to the desired position
- Save changes
The role with the admin.boss
rights always has the highest priority!
Assigning roles to users
Assigning through user profile
- Go to
Admin panel
→Users
- Find the user you need
- Click “Edit”
- In the “Roles” section select the desired roles
- Save changes
Multiple roles
A user can have multiple roles at the same time:
- Rights are summed up — the user receives all rights from all their roles
- Priority is determined by the highest role — for display, the role with the highest priority is used
If a user has the “Moderator” and “VIP” roles, they will receive rights from both roles, but the role with the higher priority will be displayed.