CAllCrmQuote::CheckStatusPermission

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

	$permissionName = \Bitrix\Crm\Security\EntityPermissionType::resolveName($permissionTypeID);
	$entityAttrs = array("STATUS_ID{$statusID}");
	return $permissionName !== '' &&
		($userPermissions->GetPermType(self::$TYPE_NAME, $permissionName, $entityAttrs) > BX_CRM_PERM_NONE);
}

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