IsSubAdmin

Checks if the current user has subadministrator rights to at least one administrative application.

Type and Usage

Output

  • Returns TRUE if the user has subadministrator rights.

  • Returns FALSE if the user does not have subadministrator rights.

Example

Checks whether the user is logged in and has subadministrator rights before performing a function.

<@dynamichtml subscription_action_script@>
    function allowSubscription(form)
    {
    <$if IsLoggedIn$>
    <$if IsSubAdmin$>
    <$else$>
    …
    }
<@end@>