Documentation

TransferMember2Moderator

bool
CSocNetUserToGroup::TransferMember2Moderator(
 int userID,
 int groupID,
 array arRelationID,
 bool currentUserIsAdmin
);

Method assigns group users as moderators. Non-static method.

Parameters

Parameter Description Available from version
userID User ID.
groupID Workgroup ID.
arRelationID Array with IDS for bindings between workgroup and users.
currentUserIsAdmin Flag for marking user as administrator. Deprecated from version 22.100.0 Access permissions are no longer verified inside the method, and now verified only via external methods

Return value

True on success and false otherwise.

© «Bitrix24», 2001-2024