How to hide repository menu for non-admin users

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
komathodi_vijay
Active Member

How to hide repository menu for non-admin users

Jump to solution

Is there any ways to disable/hide repository menu for non-admin user while logging in portal.

1 Solution

Accepted Solutions
afaust
Master

Re: How to hide repository menu for non-admin users

Jump to solution

There is a simple default configuration out-of-the-box with which you can configure the Repository to be visible or not in the menu. You can configure this via share-config-custom.xml

<config evaluator="string-compare" condition="RepositoryLibrary">
    <!-- Hide the Repository header link for non-Admin users -->
    <visible>false</visible>
</config>
5 Replies
mikel_asla
Established Member

Re: How to hide repository menu for non-admin users

Jump to solution

Hi, 

I think this is what you need

Removing a menu item (Aikau) | Alfresco Documentation 

Regards

komathodi_vijay
Active Member

Re: How to hide repository menu for non-admin users

Jump to solution

Hi Mikel,

I have already gone through document disable custom header.But i was not able to hide the repository browser for non-admin users. 

afaust
Master

Re: How to hide repository menu for non-admin users

Jump to solution

There is a simple default configuration out-of-the-box with which you can configure the Repository to be visible or not in the menu. You can configure this via share-config-custom.xml

<config evaluator="string-compare" condition="RepositoryLibrary">
    <!-- Hide the Repository header link for non-Admin users -->
    <visible>false</visible>
</config>
komathodi_vijay
Active Member

Re: How to hide repository menu for non-admin users

Jump to solution

Thanks Axel. Its working fine.

4535992
Established Member II

Re: How to hide repository menu for non-admin users

Jump to solution

Hi  Axel  the link to the repository is hidden, but my users still access the repository by goinig to "/share/page/repository" there is some way to intercept the call to the page link "repository" for appling my own evaluator or even better with some surf extension?

For now i just modify the "/share/WEB-INF/classes/alfresco/site-data/pages/repository.xml" and change the authentication level:

<?xml version='1.0' encoding='UTF-8'?>
<page>
   <title>Repository Browser</title>
   <title-id>page.repository.title</title-id>
   <description>Browse content across the whole Repository</description>
   <description-id>page.repository.description</description-id>
   <template-instance>repository</template-instance>
   <authentication>admin</authentication><!--instead of user -->
</page>

but the solution is to static for me.