As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<#if user.isAdmin> <div class="toolbar"> <a href="#" id="${args.htmlid}-createSite-button" class="theme-color-1">${msg("link.createSite")}</a> </div> </#if>
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; }