Bitrix Site Manager

CanUserDeleteUser

bool
CanUserDeleteUser(
 int ID,
 array arUserGroups
);

The method CanUserDeleteUser thoroughly checks whether a specified user who is a member of a specified group can delete a profile.

Parameters

ParameterDescription
ID The ID of the profile which the user wants to delete.
arUserGroups Array of groups whose member this user is. Array of groups of the current user is returned by $USER->GetUserGroupArray().

Return Values

Returns true if the user has all the permissions required to delete a profile, or false otherwise.

See Also

  • CForumUser::CanUserAddUser
  • CForumUser::CanUserUpdateUser