Метод shouldCheckPermissions
Сигнатура метода
public function shouldCheckPermissions(): bool
Возвращает:
bool
Описание
Whether the operation performs the checks of the rights it has. It is no key of the option array either: legacy takes it as a positional argument of every one of its three write entry points and compares it strictly with true, and there is exactly one such check in the write paths - the restriction on deleting the record of a call (row 3 of the owner table of a delete). Saying nothing means the checks happen, which is the default of legacy; the callers passing false are the providers, the cleanups of volume and the mass operations, and they pass it while acting as a real user - so this is not the same statement as acting as nobody. The hidden check of the right to READ an activity that legacy performs with the same switch belongs to the facade over the legacy entry point.
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/ActivityOperationContext.php