Метод canWriteToEntity

private static

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

private static function canWriteToEntity(int $userId, int $crmEntityTypeId, int $crmEntityId): bool

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

Описание

The draft may sit on another entity than the message being sent, and the send gate checks only the entity the message ends up on. Access to the draft entity can be gone since the draft was composed, so the right to write mail into it is re-checked here, by the same gate the send path uses for its own owner and for the permissions of the user the draft is claimed for.

Параметры

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

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/integration/mail/draft.php
Расположение метода в файле
Строки 106–117

Исходный код

PHP