You are here

isAdmin

isAdmin(person) returns the administrator status of the specified user.

Parameters

person
A TemplateNode object representing the user to check.

Returns

Returns true of the specified user is an Administrator, false otherwise.

Example

          
<p>isAccountEnabled: <#if people.isAccountEnabled(myPerson)>TRUE<#else>FALSE</#if></p>
<p>isAdmin: <#if people.isAdmin(myPerson)>TRUE<#else>FALSE</#if></p>
<p>isGuest: <#if people.isGuest(myPerson)>TRUE<#else>FALSE</#if></p>
        
      

The preceding code snippet would produce output similar to the following:

isAccountEnabled: TRUE

isAdmin: TRUE

isGuest: FALSE      
      

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.