Roles & Permissions
The admin system uses a role-based access control (RBAC) system. Each user is assigned a role that determines their permissions within the system.Available Roles
The system has the following administrative roles:| Role | Description |
|---|---|
| Owner | Full system access with all permissions |
| Manager | System management with most permissions |
| Developer | Technical access for development and integration |
| Support | Customer support with limited access |
| Marketing | Content management and marketing tools |
Permission Structure
Permissions are organized by resource and action. Each permission follows the format:resource:action
For example:
users:list- View list of usersusers:create- Create new usersusers:update- Update existing usersusers:delete- Delete users
Resources
The following resources are available:dashboard- Dashboard stats and analyticsusers- User managementsites- Site managementroles- Role management
Actions
Each resource can have the following actions:list- View list of itemscreate- Create new itemsview- View item detailsupdate- Update existing itemsdelete- Delete items
Role Permissions
Here’s a detailed breakdown of permissions by role:Owner
Has all permissions including:Manager
Has most permissions excluding sensitive operations:Developer
Has technical access permissions:Support
Has customer support permissions:Marketing
Has content management permissions:Permission Checking
The system automatically checks permissions for each API request. If a user doesn’t have the required permission, they’ll receive a 403 Forbidden response:/admin/auth/me) which includes the permissions array in the response.
