cancel
Showing results for 
Search instead for 
Did you mean: 

Hide a Tab for a specific group of users

Julien_A_
Champ on-the-rise
Champ on-the-rise

Hello,

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

How can I do that with Nuxeo Studio ?

Thank you

1 REPLY 1

Vladimir_Pasqui
Star Collaborator
Star Collaborator

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.