Documentation
IPS_RoleExists
bool IPS_RoleExists (string $Role)
Parameters
| Role | Name of the role to be checked |
Returns
If the role exists, TRUE is returned, otherwise FALSE.
Description
The function checks whether a role with the name Role exists. The name is case-sensitive. The role @admin always exists. The function requires neither administrator permissions nor the RBAC feature in the license.
Example
if (IPS_RoleExists('Residents')) {
echo 'Role already exists!';
}