Метод canAddToOwner

public

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

public function canAddToOwner(int $userId, ActivityBinding $owner): bool

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

Описание

Whether the user may attach a new activity to this CRM object. Creating an activity is not an operation of its own: it is an update of the object the activity will belong to, and it is the caller who asks - the core write path checks no rights. This is the check to ask with.

Параметры

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

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

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

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

Исходный код

PHP