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