Component permissions
Component permissions choose which roles receive a component — a button, a table, a whole section. Users of other roles never get it: the component is removed on the server before the page configuration is sent, so it cannot be revealed by browser tricks.
Component permissions
Component permissions choose which roles receive a component — a button, a table, a whole section. Users of other roles never get it: the component is removed on the server before the page configuration is sent, so it cannot be revealed by browser tricks.
When to use
- A Delete button only Staff should have on a page customers can also open.
- An internal notes section on a job page shared with the customer.
- A pricing column or margin KPI for managers only.
If the page as a whole is role-restricted, you usually do not need component permissions on it.
How to set component permissions
- Select the component on the canvas (selecting a container such as a Card or Section covers everything inside it).
- Open the Permissions tab in the inspector.
- Untick Everyone who can open the page. A list of roles appears.
- Tick the roles that should receive the component. Full-access roles are always ticked.
- Check the result with Preview as for each role.
Card "Internal notes" Permissions: Staff ✓, Admin ✓ (always), Customer ✗, Public ✗ Button "Delete job" Permissions: Admin only
Permissions vs Visibility
| Permissions tab | Visibility tab | |
|---|---|---|
| Based on | The user's role | Any condition (a value, state, the user) |
| Enforced | On the server; the component is not delivered | In the browser; the component is delivered and hidden |
| Use for | Protecting content and controls | Showing the right thing at the right time |
A Show only when Status is Sent rule belongs in Visibility. "Only Staff may see this" belongs in Permissions. Hiding a component with Visibility is not a security boundary, and neither tab protects the underlying records — that is what entity permissions do.
Actions inside restricted components
Server actions (Create, Update, Delete record, Call API, Send email, Run workflow) are looked up in the configuration the user is allowed to see. A role that does not receive a component cannot trigger its actions either, even by replaying a request: the server answers "This action is not available."
Common mistakes
- Restricting a component but leaving its data readable. A customer without the Jobs table still has View on Jobs if you granted it; restrict the entity too.
- Restricting a child but not its container. Works, but the container's layout may leave a gap; consider restricting the whole card.
- Expecting Permissions to depend on a record value. Role only. For "only the record's owner may edit", use record-level permissions and a Visibility rule.
- Forgetting that full-access roles always receive everything. You cannot hide a component from Owner/Admin with this tab.
Related
Advanced
A component instance carries permissions: { roles: [...] } | null. canSeeComponent runs inside configForUser: for a denied component, the whole subtree is deleted from components and the id is removed from the parent's children.