You are here

isAccountEnabled

isAccountEnabled(person) returns the status of the specified user.

Parameters

person
A TemplateNode object representing the user to check.

Returns

Returns true if the specified user account is enabled, 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.