Метод isDeletionRestricted
Сигнатура метода
public function isDeletionRestricted(int $userId, int $activityId): bool
Возвращает:
bool
Описание
Whether the user is forbidden to delete this activity. A subject that is not a user is the system, and the system is never restricted: a caller acting on behalf of the portal - emptying the recycle bin, cleaning up volume, a provider deleting after itself - passes no user and keeps deleting.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
—
|
—
|
$activityId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Access/Activity/CallDeletionRestrictionRule.php
Расположение метода в файле
Строки
50–73