cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable or hide 'View Details' for specific role

nys
Champ in-the-making
Champ in-the-making
Hi,

I am working on 2.9 community version and  have a requirement as following.

I create a space and invite a user to that space with consumer role. Now I don't want that user to perform any of the default functions under the Action menu which the user will see when he/she clicks on the "View Details" under More Actions menu. So I want to disable all those functions under Action menu or disable/hide the "View Details" itself. And this is only for the consumer role user.

Could someone please help me in getting this solved.

Thanks,
nys.
1 REPLY 1

giacomo83
Champ in-the-making
Champ in-the-making
Hi,
I'am working with on 3.0 community version, I had your same problem, but I solved this way.

In the web-client-config-actions.xml file, search the two actions, details_space and details_doc, and add the permissions for the role you want.

for example, post my case:


         <!– View document details –>
         <action id="details_doc">
             <!– Start added to original code  –>
       <permissions>
              <permission allow="true">Editor</permission> 
            </permissions>
       <!– End added to original code  –>
       <label-id>view_details</label-id>
            <image>/images/icons/View_details.gif</image>
            <action-listener>#{BrowseBean.setupContentAction}</action-listener>
            <action>dialog:showDocDetails</action>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>

         <!– View space details –>
         <action id="details_space">
           <!– Start added to original code  –>
       <permissions>
              <permission allow="true">Editor</permission> 
            </permissions>
      <!– End added to original code  –>
      <label-id>view_details</label-id>
            <image>/images/icons/View_details.gif</image>
            <action-listener>#{BrowseBean.setupSpaceAction}</action-listener>
            <action>dialog:showSpaceDetails</action>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>
I wanted to deny access to  view details for Consumer