Documentation

CanUserViewGroup

bool
CSocNetGroup::CanUserViewGroup(
 int userID,
 int groupID
);

The method checks if user can view group in the group list. This user can view the group in the group list, if this group is visible or the user is a member of this group. Static method.

Parameters

Parameter Description Available from version
userID User ID
groupID Group ID

Returned value

Returns true when user can view the group. Otherwise, returns false.



© «Bitrix24», 2001-2024
Up