System:User:userHasGlobalAccess

From Aspen Documentation

Returns whether or not user has global access (admin/superuser). Global access in the user privileges table is identified with asterisks.

Since 1.0

Contents

Arguments

boolean userHasGlobalAccess ()

Returns

Returns boolean, true if user has global access.

Notes

  • For the current user, the constant IS_ADMIN is set as a boolean value, and provides the same information as this function.

Examples

Example:

$this->APP->user->userHasGlobalAccess();