bool CUser::IsAdmin()
The method IsAdmin 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.
No parameters.
<? global $USER; if ($USER->IsAdmin()) echo "You are the Administrator!"; ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |