01-19-2012 02:43 AM
01-20-2012 08:14 AM
siteowners = remote.call("/api/groups/SITE_CREATORS/children?authorityType=USER");
siteowners = eval('(' + siteowners + ')');
model.canCreate = false;
if(siteowners && siteowners.data)
for(i=0; i<siteowners.data.length; i++){
current_user = siteowners.data[i];
if(current_user.shortName == user.id){
model.canCreate = true;
break;
}
}
<#if canCreate || isAdmin>
<ul class="create-site-menuitem">
<li>
<span><a href="#" onclick='Alfresco.util.ComponentManager.get("${id_js}").showCreateSite(); return false;'>${msg("label.create-site")}</a></span>
</li>
</ul>
</#if>
01-20-2012 08:24 AM
01-23-2012 04:13 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.