You are here

getCapabilities

getCapabilities(person) returns a map of capabilities for a given person.

Parameters

person
A TemplateNode object representing the user to check.

Returns

Returns a map of capabilities as boolean assertions for the specified person.

Example


...
<#assign caps = people.getCapabilities(myPerson)>
<#assign keys = caps?keys>
<#list keys as k>
  <p>${k}: <#if caps[k]>TRUE<#else>FALSE</#if></p>
</#list>

The preceding code snippet would result in output such as the following:

isGuest: FALSE

isMutable: TRUE

isAdmin: TRUE        
      

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.