CCrmAuthorizationHelper::CheckCreatePermission

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmAuthorizationHelper
  4. CheckCreatePermission
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_authorization_helper.php
  • Класс: \CCrmAuthorizationHelper
  • Вызов: CCrmAuthorizationHelper::CheckCreatePermission
static function CheckCreatePermission($entityTypeName, $userPermissions = null)
{
	$entityTypeName = strval($entityTypeName);

	if(!$userPermissions)
	{
		$userPermissions = self::GetUserPermissions();
	}

	return !$userPermissions->HavePerm($entityTypeName, BX_CRM_PERM_NONE, 'ADD');
}

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