cancel
Showing results for 
Search instead for 
Did you mean: 

Client should not be able to create sites

rodrigorapozo
Champ in-the-making
Champ in-the-making
Hello everyone,

When I invite someone to a site with client role the options to manage sites are hide this is ok, but in dashlet "My Sites" have one options "Create Site" and this options works. How I can disable totally a client to create sites.

Thanks you all!!!

Rodrigo Rapozo
1 REPLY 1

romschn
Star Collaborator
Star Collaborator
For this you will need to customize My Sites dashlet to show the Create Site option only to the site manager.
Below are the few pointers to help you get this done.
1. Customize /site-webscripts/org/alfresco/components/dashlets/my-sites.get.html.ftl to add a condition check for site manager where the Create Site link/button is being generated.
 
 <#if userIsSiteManager>
      <span class="yui-button-align">
            <span class="first-child">
               <a href="#" id="${args.htmlid}-createSite-button" class="theme-color-1">${msg("link.createSite")}</a>
            </span>
         </span>
   </#if>

2. Also modify all instances related to create site link to be displayed only for site manager by customizing components/dashlets/my-sites.js

Hope this pointers will help you get going with achieving your requirement implementation.