CAllCrmDeal::GetStageUpdatePermissionType

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmDeal
  4. GetStageUpdatePermissionType
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_deal.php
  • Класс: \CAllCrmDeal
  • Вызов: CAllCrmDeal::GetStageUpdatePermissionType
static function GetStageUpdatePermissionType($stageID, CCrmPerms $userPermissions = null, $categoryID = 0)
{
	if($userPermissions === null)
	{
		$userPermissions = CCrmPerms::GetCurrentUserPermissions();;
	}

	return $userPermissions->GetPermType(
		DealCategory::convertToPermissionEntityType($categoryID),
		'WRITE',
		array("STAGE_ID{$stageID}")
	);
}

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