CAllCrmActivity::CheckUpdatePermission

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. CheckUpdatePermission
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::CheckUpdatePermission
static function CheckUpdatePermission($ownerType, $ownerID, $userPermissions = null)
{
	$ownerTypeName = is_numeric($ownerType)
		? CCrmOwnerType::ResolveName((int)$ownerType)
		: mb_strtoupper(strval($ownerType));

	if(!is_int($ownerID))
	{
		$ownerID = (int)$ownerID;
	}

	$permissionEntityType = CCrmPerms::ResolvePermissionEntityType($ownerTypeName, $ownerID);
	return CCrmAuthorizationHelper::CheckUpdatePermission($permissionEntityType, $ownerID, $userPermissions);
}

Добавить комментарий