07-12-2010 12:49 PM
<#if user.isAdmin>
<div class="toolbar">
<a href="#" id="${args.htmlid}-createSite-button" class="theme-color-1">${msg("link.createSite")}</a>
</div>
</#if>
07-13-2010 03:33 AM
function userHasGroup(user, group) {
var result = remote.call("/api/people/" + stringUtils.urlEncode(user) + "?groups=true");
if (result.status == 200 && result != "{}")
{
var user = eval('(' + result + ')');
var groups = new Array();
groups = user.groups;
for (i=0; i<groups.length; i++)
{
if (groups[i]=="GROUP_" + group) return true; // found group
}
return false;
}
else return false;
}
07-13-2010 12:05 PM
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.