Documentation

IsAdmin

bool
CUser::IsAdmin()

The method checks if the current authorized user belongs to the Administrators group (usually called from the $USER object). Returns true if the user is of the Administrators group, or false otherwise. Non-static method.

Parameters

No parameters.

See Also

Examples of use

<?
global $USER;
if ($USER->IsAdmin()) echo "You are the Administrator!";
?>


© «Bitrix24», 2001-2024
Up