Skip to Content
author's profile photo Former Member
Former Member

Allow only one usergroup to change component content

I want to restrict only a specific usergroup to edit and change some component content. How do I achieve this ? Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2016 at 09:26 AM

    Hi Saurabh,

    you can modify access rights according to your needs with the following impex:



    "$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:

    1. Deny access to specific types, attributes for specific usergroups

    2. Grant e.g. change permission to specific types and attributes for particular groups.

    hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.