Permissions and scope
What an operator can do comes from two things: which actions they are allowed (permissions) and over which part of the hierarchy (scope).
Permissions: resource + action
Permissions are flat: four actions per resource, and none implies another.
| Action | Covers |
|---|---|
| View | Lists, details and reports. |
| Create | Creating the resource. |
| Edit | Modifying, activating/deactivating and managing sub-resources. |
| Delete | Cascading deletion. |
Grantable resources: Clients, Accounts, Operations, Devices, Inventory (device_inventory),
Products, Users, Codes, Profiles, Reports, Operators, Roles, Settings, API keys, Audit, Stock, Routes,
Tickets, Licenses, AI assistant.
Nothing implies anything: Edit does not grant View. In practice, without View you cannot open the list or the detail — and the edit buttons live inside them: a role with Edit but no View can do nothing through the interface. The useful rule: always tick View, then add what else is needed.
Two resources stand on their own:
- Inventory (
device_inventory) is separate from Devices: View inventory shows the Inventory tab, Edit inventory allows touching slots and the planogram. Seeing the device itself depends on View devices. - Codes is separate from Users: managing credentials does not necessarily mean being able to create or edit the person. Both belong to the account; what separates them is the permission, not the level.
Scope: where they apply
Every operator lives at a level: client or account. Their permissions only apply to that node and everything below it.
| Scope | Sees |
|---|---|
| Client | Its accounts, operations, devices, users… |
| Account | Its whole account: its operations, devices, users, profiles and products. |
There are no operators limited to a single operation: an operation is an entity, not an access level. To narrow down by site, use the operation filter on each list.
Outside scope, the answer is Your scope does not allow this action on the resource.
Role + extra permissions
The role is the template: it sets the operator's floor of permissions. When creating or editing them you may customise their permissions, and that list adds on top of the role.
| Source | How the editor shows it |
|---|---|
| From the role | Ticked and locked, labelled Granted by the role. Unticking does nothing. |
| Extra | What you tick on top. It is the only thing stored as a customisation. |
The effective permission is the union of both. To remove something from an operator you change their role: that is where the template lives.
Two limits the app always enforces:
- No privilege escalation: you may only grant permissions you hold (the editor offers only yours).
- No hierarchy jump: you only create operators at your level or below.
Your own node: edit yes, retire no
The level you belong to (your account, if that is your scope) is visible and editable with the matching Edit permission: legal name, contact, tags.
What you cannot do is deactivate or delete it: deletion cascades over the operators of that scope, yours included, and there is no restore. The app hides those two buttons and the server rejects them anyway. Nor can you touch a level above yours.
Creating: the level matters too, not just the permission
Creating a hierarchy entity requires standing above it. With the Create permission but at the
wrong level, the app does not show the button and will not open the /new URL:
| To create | Who can |
|---|---|
| Account | Client. An account-level operator sees one account —its own— so it does not create accounts. |
| Operation | Client and account. |
| Profile | Client and account. Every profile belongs to the account; where it works is defined by its authorised devices. |
| Product, user, code | Any level, within its scope. |
| Operator | Any level, at its own level or below. |
| Device | None: it arrives already registered in your account. |
What the app hides and what it does not
The interface hides what you cannot use, but the definitive filter is the server.
Hidden or blocked by permission:
| Element | Permission |
|---|---|
| Menu section (Accounts, Operations, Devices, Products, Profiles, Users, Audit) and its URL | View on the resource |
| Dashboard and Reports (Deliveries, Recharges, Available balance, Returns) | View reports + the screen's business line |
| Operators / Roles / Licenses / Developer in the avatar menu | View operators / View roles / View licenses / View API keys |
| Tickets in the menu | View tickets + an EAS account |
| Orders and the device Movements tab | View stock |
| Routes | View routes |
| AI assistant (menu and bubble) | View AI assistant |
Add buttons and their /new URLs | Create on the resource + the right level |
| Edit, activate/deactivate, move | Edit on the resource |
| Delete | Delete on the resource |
| Inventory tab and page | View inventory |
| Editing slots and planogram | Edit inventory |
| Open order from the inventory | Create stock |
| Applying an order to the inventory | Edit stock |
| Add / edit / delete code | Create / Edit / Delete codes |
| Bulk actions | Edit users (per-row detail is validated by the server) |
| Users Export to Excel | View users |
| Edit operator | Edit operators |
| Edit / delete role | Edit roles / Delete roles (system roles are never editable) |
| Add / revoke API key | Create API keys / Delete API keys |
| Edit permissions of an API key and see its secret | Edit API keys |
Not permission-dependent (any authenticated operator): My profile, its preferences, password change, the notifications bell and page, and the public QR receipt.
Hiding a button is convenience, not security: every action is re-validated on the server against your permission, your scope and your business line. Land on a URL that is not yours and the app returns you to your home screen.
Business lines: which screens you get
Your operator inherits the business lines of its origin (an account operator has exactly its account's line; a client-level one may have both), and that decides which movement screens exist for you. The reports permission is a single one (View reports) for both lines, so the line is what separates them:
| You handle | You see |
|---|---|
| VENDING only | VENDING reports: Deliveries, Recharges, Available balance |
| EAS only | EAS reports: Deliveries, Returns |
| Both | Every reports group |
My dashboard does not depend on your line: it shows the line of the account picked in its filters.
The line also limits selector options: the Business line filter in lists and the line when creating an account, which offers the intersection: the client's lines that you handle. Operations, products, profiles and codes have no line selector (they inherit it from the account), and the account selector only lists accounts of your lines.
The separation is enforced by the server, not by the menu: lists and dashboards are narrowed to your line — asking for the other one answers not authorised — and creating or editing an account, operation, product, profile or code of the line you do not handle is rejected. Hiding the option is convenience; the limit is real.
Checklist when a button is missing
- My profile › Permissions: do you hold that action on that resource? And View?
- Is the resource inside your scope?
- Is it a hierarchy node — namely your node? Then you cannot deactivate or delete it.
- Is the resource's business line one of yours?