• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entityform/scopeaccess.php
  • Класс: Bitrix\Crm\EntityForm\ScopeAccess
  • Вызов: ScopeAccess::canDelete
public function canDelete($scopeIds): bool
{
	if (!is_array($scopeIds))
	{
		$scopeIds = [$scopeIds];
	}

	foreach ($scopeIds as $scopeId)
	{
		if (!$this->canUpdate($scopeId))
		{
			return false;
		}
	}

	return true;
}