cancel
Showing results for 
Search instead for 
Did you mean: 

Make Create-site button visible only to admin users

midoscofield
Champ in-the-making
Champ in-the-making
Hello,
I want to make the button Create-site visible only to admin users,so i have modified the file <strong>public-services-security-context.xml</strong>
org.alfresco.service.cmr.site.SiteService.createSite=ACL_METHOD.ROLE_ADMINISTRATOR 
but i can always create a site with all users
Any Idea?
An other question please,i want to know the meaning of ROLE_ADMINISTRATOR,is it users who belong to the default group ALFRESCO_ADMINISTRATORS? and if i delete this group ,how it will be ?

PS:i have a 4.2.c Alfresco version
3 REPLIES 3

eswbitto
Confirmed Champ
Confirmed Champ
ALFRESCO_ADMINISTRATORS is the default admin group that is installed with Alfresco. ROLE_ADMINISTRATOR would be the same thing in the config files that is used.

To change only the admin having the ability to create sites go to

install DIR/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/public-services-security-context.xml

that is where your line of code you have mentioned above is.

I've never tried putting the code in the share-config.xml file before.

As far as making the button only visible to admin I don't believe there is a way to do that without having to do some serious modifying. That will cause some issues with upgrading.

Personally I like to see users try to create sites, I give an evil laugh when they get the access denied notice >Smiley Happy

Heu yes I was wrong I also modified the same file,I even tried to restart the server and disconnect from the session, but it does not always work .
I do not understand why it does not work 😕

midoscofield
Champ in-the-making
Champ in-the-making
Ah it works, At first I thought that the button Create-site is going to be hidden too, but in reality the restriction is remarkable Only after entering the site's name to create