10-28-2009 08:30 AM
10-28-2009 08:49 AM
10-28-2009 08:53 AM
10-28-2009 09:00 AM
10-28-2009 09:18 AM
10-28-2009 10:07 AM
10-28-2009 11:20 AM
10-28-2009 12:16 PM
model.isManager = false;
// Check the role of the user - only SiteManagers are allowed to configure the dashlet
var obj = context.properties["memberships"];
if (!obj)
{
var json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" + stringUtils.urlEncode(user.name));
if (json.status == 200)
{
obj = eval('(' + json + ')');
// Store the memberships into the request context, so it can be used
// downstream by other components - saves making same call many times
context.setValue("memberships", obj);
}
}
if (obj)
{
model.isManager = (obj.role == "SiteManager");
}
10-29-2009 05:03 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.