How can i restrict access to content to a specific user group in Senaite 2? For example, I want to remove the contact menu from the navigation when the user group is Analyst? Can I do that from zope 4 interface?
I want also to hide a field for a specific user. It’s a sample that I’ve created for a client. When the user log in as a client, he is able to use the search field in Analysis Profiles to add another one. So, I want to hide this search field. How can I do?
you can change the visibility of a view directly from ZMI, but based on permissions, not roles. For instance, to make the “Contacts” tab from “Client” content type visible to users with a given permission, login as admin and:
Look for the desired action “Contacts” in this case
Note the field “Permission”, where you can explicitly type the permission ID required. System will render the view only if the current user has that permission granted. However, Analyst has the permission “View” granted by default. Changing the permission schema is not easy stuff and requires the overriding of the permissions mapping at workflow level. Therefore, I suggest you to use the “Condition” field and check there if current user has any of the roles “LabManager”, “LabClerk” or “Client”
Hello @elirabalison,
I saw the question you made and if possible I would like to ask if you could help me with this, since it seems that it worked for you. What did you change exactly and did the changes you made affect only lab contacts e.g. labman?