Check if an Administrator has the correct rights assigned.
checkrights( string $rights ) : bool
$rights (string) (Required) Rights you want to check for the administrator.
(bool) True if the user is administrator with rights defined in $rights.
if (checkrights('M')) {
echo 'User has access to User Management.';
}