Documentation

CForumSubscribe::CanUserDeleteSubscribe

bool
CanUserDeleteSubscribe(
 int ID,
 array arUserGroups,
 int iUserID
);

Thoroughly checks whether a user of a specified group can unsubscribe from the specified forum.

Parameters

ParameterDescription
ID The ID of the subscription from which a user wants to unsubscribe.
arUserGroups Array of groups that the user is member of. For the current user, you can obtain this array by calling $USER->GetUserGroupArray().
iUserID The user ID. For the current user, you can obtain it by calling $USER->GetID().

Return Values

Returns true is the user can unsubscribe, or false otherwise.

See Also

  • CForumSubscribe::CanUserAddSubscribe
  • © «Bitrix24», 2001-2024
    Up