Documentation

CanPerformOperation

bool
CSocNetUserPerms::CanPerformOperation(
 int fromUserID,
 int toUserID,
 string operation,
 bool bCurrentUserIsAdmin = false
);

The method checks if user can perform a specified operation with target user profile. Static method.

Parameters

Parameter Description Available from version
fromUserID User ID, who's access permissions are verified.
toUserID User ID, which user profile is accessed.
operation Operation.
bCurrentUserIsAdmin Specifies the user who's access permissions are checked, as admin. Optional parameter. Set to false by default.

Retured value

Returns true when access permissions for performing the operation are available. Otherwise, returns false.



© «Bitrix24», 2001-2024
Up