• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/ProductGrid/ProductGridQuery.php
  • Класс: BitrixCrmMobileProductGridProductGridQuery
  • Вызов: ProductGridQuery::isEntityEditable
private function isEntityEditable(): bool
{
	$userPermissions = Container::getInstance()->getUserPermissions();

	if ($this->entity->isNew())
	{
		$isEditable = $userPermissions->checkAddPermissions(
			$this->entity->getEntityTypeId(),
			$this->entity->getCategoryId()
		);
	}
	else
	{
		$isEditable = $userPermissions->checkUpdatePermissions(
			$this->entity->getEntityTypeId(),
			$this->entity->getId(),
			$this->entity->getCategoryId()
		);
	}

	return $isEditable;
}