CCrmUserFieldRestProxy::checkReadPermission

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmUserFieldRestProxy
  4. checkReadPermission
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmUserFieldRestProxy
  • Вызов: CCrmUserFieldRestProxy::checkReadPermission
protected function checkReadPermission()
{
	//Check only entity read permission to allow non-administrator users to call crm.*.userfield.get, crm.*.userfield.list
	return \Bitrix\Crm\Security\EntityAuthorization::checkReadPermission(
		$this->ownerTypeID,
		0,
		CCrmPerms::GetUserPermissions($this->user->GetID())
	);
}

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