General Introduction
Settings
Add
Authorize
CanDoFileOperation
ChangePassword
Delete
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
Complex logic in filter
Special variables
Special constants
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-2023
Up