Skip to main content

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.

ActionCovers
ViewLists, details and reports.
CreateCreating the resource.
EditModifying, activating/deactivating and managing sub-resources.
DeleteCascading 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.

Flat, but View is the front door

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.

ScopeSees
ClientIts accounts, operations, devices, users…
AccountIts 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.

SourceHow the editor shows it
From the roleTicked and locked, labelled Granted by the role. Unticking does nothing.
ExtraWhat 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 createWho can
AccountClient. An account-level operator sees one account —its own— so it does not create accounts.
OperationClient and account.
ProfileClient and account. Every profile belongs to the account; where it works is defined by its authorised devices.
Product, user, codeAny level, within its scope.
OperatorAny level, at its own level or below.
DeviceNone: 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:

ElementPermission
Menu section (Accounts, Operations, Devices, Products, Profiles, Users, Audit) and its URLView 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 menuView operators / View roles / View licenses / View API keys
Tickets in the menuView tickets + an EAS account
Orders and the device Movements tabView stock
RoutesView routes
AI assistant (menu and bubble)View AI assistant
Add buttons and their /new URLsCreate on the resource + the right level
Edit, activate/deactivate, moveEdit on the resource
DeleteDelete on the resource
Inventory tab and pageView inventory
Editing slots and planogramEdit inventory
Open order from the inventoryCreate stock
Applying an order to the inventoryEdit stock
Add / edit / delete codeCreate / Edit / Delete codes
Bulk actionsEdit users (per-row detail is validated by the server)
Users Export to ExcelView users
Edit operatorEdit operators
Edit / delete roleEdit roles / Delete roles (system roles are never editable)
Add / revoke API keyCreate API keys / Delete API keys
Edit permissions of an API key and see its secretEdit API keys

Not permission-dependent (any authenticated operator): My profile, its preferences, password change, the notifications bell and page, and the public QR receipt.

The server has the last word

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 handleYou see
VENDING onlyVENDING reports: Deliveries, Recharges, Available balance
EAS onlyEAS reports: Deliveries, Returns
BothEvery 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 line is more than a screen

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​

  1. My profile › Permissions: do you hold that action on that resource? And View?
  2. Is the resource inside your scope?
  3. Is it a hierarchy node — namely your node? Then you cannot deactivate or delete it.
  4. Is the resource's business line one of yours?