Roles
Use this page to create roles (for example Manager, Cashier, Accountant) and set whether each role is Active or Inactive. Permissions are configured separately on Permission — use the shield icon on a row to open the matrix for that role.
Open the screen: Sidebar → Security → Roles
Permissions live on another screen
Creating a role does not grant access by itself. After you add a role, tap Manage Permissions (shield) or go to Security → Permission and tick the modules that role needs.
Roles list
What it does
Shows all roles with ID, name, status, and actions. Filters apply on the loaded list — there is no pagination.
Step-by-step
- Open Security → Roles.
- Wait if the table shows Loading....
- Use filters to narrow the list (see table below).
- Read the table — Id, Role Name, Status, and Actions.
- Tap the refresh button to reload — toast: Refreshing Roles / Roles data is being refreshed.
- Read the footer — Showing X of Y roles.
Filters
| Filter | What it does |
|---|---|
| Search | Search by role name. Tap X in the field to clear. |
| Status | All, Active, or Inactive. Defaults to Active. |
What the table shows
| Column | Meaning |
|---|---|
| Id | Role record ID |
| Role Name | Role label. Built-in Admin shows a Protected badge. |
| Status | Active (green) or Inactive badge |
| Actions | Manage Permissions (shield) and Edit Role (pencil) |
Row actions
| Action | What it does |
|---|---|
| Manage Permissions (shield) | Opens Permission with this role pre-selected in Select Role |
| Edit Role (pencil) | Opens Edit Role to change Status only. Disabled for Protected Admin |
Find inactive roles
Set Status to All or Inactive — the page opens on Active by default.
Common mistakes / FAQs
- I see “No roles found”. Clear Search or set Status to All.
- Red or yellow banner above the table. API failed — read the message; you may lack permission to load roles.
- Add Role, Edit, or shield are disabled. Ask your administrator for CREATE or UPDATE permission on Roles.
- Can I delete a role? No — set Inactive on Edit Role instead.
Add a role
What it does
Creates a new role with a name. New roles are saved as Active. The Add Role dialog has only the name field — no status toggle.
Step-by-step
- Tap Add Role.
- In Add Role, enter Role Name (max 255 characters).
- Tap SUBMIT (or RESET to clear the field).
- When successful, you see Role created successfully and the dialog closes.
- Tap Manage Permissions (shield) on the new row to grant access.
Add fields
| Field | Required? | What to enter |
|---|---|---|
| Role Name | Yes | Short label (for example Floor Manager) |
Common mistakes / FAQs
- “Role name is required”. Enter a non-empty Role Name before you submit.
- Staff still see no menus. Set permissions on Permission, then assign the role on Staff.
Edit a role
What it does
Turns a role Active or Inactive. The role name cannot be changed after creation.
Step-by-step
- Tap Edit Role (pencil) on the row.
- In Edit Role, read Role Name — field is locked. Helper text: Role name cannot be changed.
- Toggle Status — Active or Inactive.
- Tap SUBMIT or RESET to undo changes in the dialog.
- When successful, you see Role status updated successfully.
Protected Admin role
The built-in Admin role (Protected badge) cannot be edited. The pencil stays disabled; the dialog shows Admin role cannot be modified.
Common mistakes / FAQs
- Can I rename a role? No — only Active / Inactive can change here.
- Staff cannot work after I set Inactive. Reactivate the role or assign a different role on Staff.
Open permissions for a role
What it does
Opens Permission with the role already chosen in Select Role.
Step-by-step
- Tap Manage Permissions (shield) on the row.
- You land on Security → Permission with that role selected.
- Switch Admin or POS tab as needed.
- Tick or untick checkboxes, then tap Save Changes on the floating bar.
You need access to both screens
The shield requires UPDATE on Roles. Opening Permission also requires Read on Permissions.
Protected Admin permissions
For Protected Admin, all checkboxes on Permission are disabled.
Full steps: Permission.
Permissions
| What you need | Why |
|---|---|
| Roles module permission | See the Roles menu and list |
| CREATE on Roles | Tap Add Role |
| UPDATE on Roles | Tap Edit Role or Manage Permissions (shield) |
