cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Repository Browser

sebastian1
Champ on-the-rise
Champ on-the-rise
Hi!

Is it possible to hide the Reporitory Browser for non admin users?

Sebastian
18 REPLIES 18

wasca
Champ in-the-making
Champ in-the-making
Ok so that little fix only hides the link you can still get to the repository even if your a non-admin by simply typing in

http://myserver:8080/share/page/repository

How do you limit access to the repository? What's the point of all the permisioning and role setting if everyone can just view the whole repository!

Can anyone help me out with this?

mikeh
Star Contributor
Star Contributor
The original question was "hide" not "prevent access to".

To do that you can override the site-data/pages/repository.xml definition to change the authentication to "admin".

Thanks,
Mike

srinivasmurty
Champ in-the-making
Champ in-the-making
I guess the <header> tags in "share-config.xml" only appear in the 3.4.c version. There are no header tags in my 3.3 version. Is there a way to add a whole "header" section and make it work like in 3.4.c?

mikeh
Star Contributor
Star Contributor
I guess the <header> tags in "share-config.xml" only appear in the 3.4.c version. There are no header tags in my 3.3 version. Is there a way to add a whole "header" section and make it work like in 3.4.c?
No, sorry. You'll need v3.4.

Mike

pankaj_dell
Champ in-the-making
Champ in-the-making
Hi,

I want to hide and prevent access to non Admin users to Repository label from header.
I am working on imported share.war file in eclipse and using Alfresco 4.0.d. SO please suggest me the proper steps asap.

muralidharand
Star Contributor
Star Contributor
Hi Pankaj,

Open Share-config.xml file and locate the following line.

 <item type="link" id="repository" condition="conditionRepositoryRootNode" permission="admin">/repository</item> 


Add permission="admin" attribute to it.

 <item type="link" id="repository" condition="conditionRepositoryRootNode" permission="admin">/repository</item>


Hope this helps you.

Thanks muralidharand!!

While you can edit the share-config file directly, it is not a stable method: http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fshare-confi...

The best way is to edit the share-config-custom.xml file.
Enter the share-config-custom.xml file:
 
sudo nano /opt/alfresco-4.2.e/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml


Find this section:
 
<!– Whether the link to the Repository Library appears in the header component or not.–>
<visible>true</visible>


and add
permission="admin"
after "true".
It should now look like this:
 <visible>true permission="admin"</visible> 


I have attached an image of the final settings.
Don't forget to restart your Alfresco services after making these changes Smiley Happy


While you can edit the share-config file directly, it is not a stable method: http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fshare-confi...

The best way is to edit the share-config-custom.xml file.
Enter the share-config-custom.xml file:
 
sudo nano /opt/alfresco-4.2.e/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml


Find this section:
 
<!– Whether the link to the Repository Library appears in the header component or not.–>
<visible>true</visible>


and add
permission="admin"
after "true".
It should now look like this:
 <visible>true permission="admin"</visible> 


I have attached an image of the final settings.
Don't forget to restart your Alfresco services after making these changes Smiley Happy