Метод canDelete

public

Сигнатура метода

public function canDelete(int $userId, int $activityId): bool

Возвращает: bool

Описание

Deleting takes the same rights as the other four operations, and on top of them the one restriction the domain puts on deleting: the record of a telephone conversation is not removed without an administrator ({@see CallDeletionRestrictionRule}). The restriction lives here and in no other operation, and the general {@see self::decide()} stays clear of it: it is not a right and it is remembered by nobody. The pipeline of a delete asks the rule directly rather than through this method - legacy has only the restriction wired into its delete, and the rights over the bound objects stay with the caller.

Параметры

2
Имя Тип По умолчанию Флаги
$userId int —
—
$activityId int —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Access/Activity/ActivityAccess.php
Расположение метода в файле
Строки 134–142

Исходный код

PHP