CAllCrmActivity::CheckItemPostponePermission

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. CheckItemPostponePermission
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::CheckItemPostponePermission
static function CheckItemPostponePermission(array $fields, $userPermissions = null)
{
	if(!$userPermissions)
	{
		$userPermissions = self::GetUserPermissions();
	}

	$provider = self::GetActivityProvider($fields);
	if ($provider !== null)
	{
		$associatedEntityID = isset($fields['ASSOCIATED_ENTITY_ID']) ? (int)$fields['ASSOCIATED_ENTITY_ID'] : 0;
		$result = $provider::checkPostponePermission($associatedEntityID, $fields, $userPermissions->GetUserID());
		if (is_bool($result))
		{
			return $result;
		}
	}

	return self::CheckItemUpdatePermission($fields, $userPermissions);
}

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