webCOMAND

User::is_super_user()

Returns whether the user is a 'super' user (i.e. full authorizations on the repository).

Prototype

boolean is_super_user()

Return

TRUE if is a super user, FALSE otherwise.

Example

$users = $repo->get("FROM User WHERE Email!=''");
foreach($users as $user) {
    if(!$user->is_super_user()) {
        echo($user->get_full_name() . "\n" );
    }
}

Related

check_authorized()