General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
Add
Authorize
CanDoFileOperation
ChangePassword
Delete
GetAnonymousUserID
GetByID
GetByLogin
GetCount
GetEmail
GetExternalAuthList
GetFirstName
GetFullName
GetID
GetLastName
GetList
GetLogin
GetParam
GetPasswordHash
GetUserGroup
GetUserGroupArray
GetUserGroupList
GetUserGroupString
IsAdmin
IsAuthorized
IsOnLine
Login
LoginByHash
Logout
Register
SavePasswordHash
SendPassword
SendUserInfo
SetLastActivityDate
SetParam
SetUserGroup
SetUserGroupArray
SimpleRegister
Update
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