cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide repository menu for non-admin users

komathodi_vijay
Champ on-the-rise
Champ on-the-rise

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

1 ACCEPTED ANSWER

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>

View answer in original post

5 REPLIES 5

mikel_asla
Star Contributor
Star Contributor

Hi, 

I think this is what you need

Removing a menu item (Aikau) | Alfresco Documentation 

Regards

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. 

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>

Thanks Axel. Its working fine.

4535992
Star Collaborator
Star Collaborator

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.