Hide a Tab for a specific group of users

Hello,

I want to hide the History tab for a specific group of users

How can I do that with Nuxeo Studio ?

Thank you

0 votes

1 answers

3362 views

ANSWER



Hi,

You cannot customize the filter action in a simple click way.

In order to do that in Studio, you can redefine your action contribution by xml:

  • Go to Advanced Settings/XML Extensions

  • Create a new xml contribution

  • Fill it with the following code:

    <require> org.nuxeo.ecm.platform.audit.web </require>
    <action id="TAB_CONTENT_HISTORY" link="/incl/tabs/document_history.xhtml"
      enabled="true" label="action.view.history" icon="/icons/file.gif"
      order="100">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>TAB_CONTENT_HISTORY_has_subtabs</filter-id>
      <filter-id>YOUR_FILTER</filter-id>
    </action>                 
        <filter id="YOUR_FILTER">
          <rule grant="true">
            <permission>Manage everything</permission>
          </rule>
        </filter>
    

Then you can update this filter “YOUR_FILTER” according to the group/user roles on the document.

Depends on your business rules.

0 votes