on 06-29-2016 9:07 AM
I want to restrict only a specific usergroup to edit and change some component content. How do I achieve this ? Thanks
Hi Saurabh,
you can modify access rights according to your needs with the following impex:
$START_USERRIGHTS
Type;UID;MemberOfGroups;Password;Target;read;change;create;delete;change_perm
UserGroup;YOURGROUP;
;;;;CMSParagraphComponent;+;+;+;+;-
;;;;CMSParagraphComponent.content;+;+;;;
$END_USERRIGHTS
Explanation:
"$START_USERRIGHTS" and "$END_USERRIGHTS" are kind of "magic macros" which are exsistent out of box.
The first data line "UserGroup;YOURGROUP;" 'tells' the script that the following lines belong to the user group with uid "YOURGROUP".
The line ";;;;CMSParagraphComponent;+;+;+;+;-" then grants read, change, create and delete permission for the type "CMSParagraphComponent" to the group.
The line ";;;;CMSParagraphComponent.content;+;-;;;" grants read permission and restricts change of the attribute "content". Rights for "create", "delete" and "change_perm" are inherited in this line.
With this snippet you should be able to:
Deny access to specific types, attributes for specific usergroups
Grant e.g. change permission to specific types and attributes for particular groups.
hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.