03-01-2013 08:37 AM
03-01-2013 08:44 AM
03-04-2013 03:12 AM
03-04-2013 08:45 AM
03-06-2013 04:38 AM
03-18-2013 06:47 AM
03-18-2013 04:53 PM
function main()
{
createSite = false
var result = remote.call("/api/people/" + stringUtils.urlEncode(user.name) + "?groups=true");
if (result.status == 200)
{
var i;
// Create javascript objects from the server response
// This is the User and it also contains all groups.
var userValue = eval('(' + result + ')');
if (userValue.groups.length != 0)
{
for (i = 0; i < userValue.groups.length; i++)
{
if (userValue.groups[i].itemName == "GROUP_ALFRESCO_ADMINISTRATORS") createSite = true;
if (userValue.groups[i].itemName == "GROUP_CreateSiteAdministrator") createSite = true;
}
}
}
// Check for IMAP server status
var result = remote.call("/imap/servstatus"),
imapServerEnabled = (result.status == 200 && result == "enabled");
// Prepare the model for the template
model.imapServerEnabled = imapServerEnabled;
model.createSite = createSite;
}
main();
<span class="first-child">
<#if createSite>
<a href="#" id="${id}-createSite-button" class="theme-color-1">
<img src="${url.context}/res/components/images/site-16.png" style="vertical-align: text-bottom" />
${msg("link.createSite")}</a>
</#if>
</span>
07-07-2015 10:36 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.