Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.9
-
None
-
-
Empty show more show less
-
HL & LD 37, HL & LD 38
-
3
Description
Steps to reproduce
- Go to our demo (as superuser) and at the Resources app, edit the /mtk/templates/components/html.yaml file
- Regarding our docs, include the following snippet
deletable: false writable: false moveable: false personalizable: false
- Login as eric and open a pager which has an HTML component within it
- Check only delete and move are restricted
Expected results
The editor can't edit, create component variants, delete or move the HTML component
Actual results
The editor can edit and create variants on the restricted HTML component
Workaround
The rules are implemented. Just missing in the configuration. Hotfix or decorate the config to add missing rules (not tested).
Development notes
Even including this restrictions on the pages.yaml file, the editor con edit and create variants on the HTML component:
main: availableComponents: # using all components from footer plus others <<: *footerAvailableComponents html: id: mtk:components/html permissions: write: roles: superuser: superuser delete: roles: superuser: superuser move: roles: superuser: superuser add: roles: superuser: superuser personalize: roles: [superuser]
Checklists
Acceptance criteria
Attachments
Issue Links
- is cloned by
-
MGNLPN-583 Component restrictions are not working
-
- Closed
-
- is related to
-
PAGES-387 Components Are Still Editable When Editable Property Is False
-
- Closed
-