ACL condition script examples
Show a control only when the phase equals Concept
if (!g_serviceguid) return false;
var service = JSON.parse(
ServiceCatalogInterface.getServiceOverview(g_serviceguid)
);
return service && service.phase && service.phase.name === "Concept";Show a control starting from a minimum phase
if (!g_serviceguid) return false;
var service = JSON.parse(
ServiceCatalogInterface.getServiceOverview(g_serviceguid)
);
return service && service.phase && service.phase.order >= 5;Show a control when the phase is X OR Y
Exclude specific document categories
Include only specific document categories
Apply ACL only when a template part has a specific value
Apply ACL when a part has a value AND phase equals Concept
Apply ACL when a part is different from a value AND phase equals X
Final notes
Last updated
Was this helpful?