cancel
Showing results for 
Search instead for 
Did you mean: 

disable repository ,site URL share

aditya_chaudhar
Champ on-the-rise
Champ on-the-rise
Hi All,

How can i disable URL 
 http://servername:8080/share/page/repository  
  for all users and only visible to admin's </code>

Also for my alfresco project i am using alfresco as as repository solution i don't want to show site dashboard to users.


In short i want to disable OR show some error message when user will hit below url's
http://servername:8080/share/page/repository

and
http://servername:8080/share/page/site/SiteName/


I want to disable this url's for all users except admins or some group.

Please guide me to achieve URL handling in alfresco


Version
Alfresco community 4.2e


2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
There are multiple options to do this.

Create a new filter for Alfresco share which will disable  those url for other users.
You need to override web.xml to place your filter class.

Other way is to add check in related page template. Because each url is associated with one page and page is associated is loaded based on root template first so you can add check for admin user there and show message accordingly.


augustodelucena
Champ on-the-rise
Champ on-the-rise
I have been sweeping around for days and I finally found one solid and easy option to meet your requirement, thanks for a post in this forum from @MikeH.

Maybe it's not the desired behavior or won't reach your expectation but you can override the site-data/pages/repository.xml definition by changing the authentication tag to "admin", it will then prevent 'non-admin' users to access the repository and you wont't have to hide the header repository button in just one go.

I tried with different approaches and I found that method the easiest to implement and at least accomplished my goal.

Regards.