Documentation

CurrentUserCanPerformOperation

bool
CSocNetFeaturesPerms::CurrentUserCanPerformOperation(
 char type,
 int id,
 string feature,
 string operation,
 bool site_id = SITE_ID
);

The method checks if current user has access permission to perform an operation. Static method.

Parameters

Parameter Description Available from version
type Object type:
SONET_ENTITY_GROUP - group,
SONET_ENTITY_USER - user.
id Object ID (user or workgroup).
feature Name of extra features.
operation Name of operation.
site_id Site ID. Optional.

Returned value

Returns true, if the current user has access permissions to perform an operation. Otherwise, returns false.



© «Bitrix24», 2001-2024