Details
-
Bug
-
Resolution: Done
-
Neutral
-
6.2.11
-
None
-
-
Empty show more show less
-
HL & LD 37, HL & LD 38
-
0
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
- clones
-
MGNLPN-583 Component restrictions are not working
-
- Closed
-