Role restrictions
The plugin applies permissions at layer and field levels.
General rules
ADMIN(orROLE_ADMIN) has full access.- If
allowEditisfalse, nobody can edit the layer. - If
allowEditRolesis provided, only those roles can edit the layer. - Without
edit/editingRoles, layer editing is allowed. - Without
delete/deletionRoles, delete follows layer edit permission. - If
allowDeleteis missing or set tofalse, the delete button is hidden.
Field rules
- If a field has
editable: false, it is read-only. - If a field defines
roles, only those roles can edit it. - Active business override:
a
requiredfield with an empty value stays editable, even if configured as non-editable or restricted to specific roles.
Action buttons
- Read mode: pencil button to enter edit mode.
- Edit mode: save (green), cancel (yellow), delete (red).
- Buttons stay visible in the static toolbar (outside scroll area).
- In edit mode, the user must save or cancel before switching layer or feature.
UI behavior based on permissions
- If the user cannot edit because of roles, a
lockstatus button is shown with a tooltip. - If the user cannot edit because of
restrictedArea, arecordstatus button is shown with a tooltip. - If both restrictions apply, both buttons are shown.
- In edit mode, unauthorized fields are still shown but stay read-only.
- A
requiredempty field becomes editable to allow mandatory input, including when editing is normally restricted to specific roles. - Delete button is shown only when
allowDeleteistrue. - When the button is shown, it is enabled only if delete permission is granted.
- In read mode, hidden fields (
hidden) are not rendered. - In edit mode, a
hiddenfield is rendered only if it is declared infields.