Метод cleanOrphanedAccessPermissions
Сигнатура метода
private static function cleanOrphanedAccessPermissions(int $templateId): void
Возвращает:
void
Описание
Drops ACL matrix rows that scoped this template ID so a later reuse of the ID cannot leak access to a foreign template, then invalidates the effective-permission cache globally. The «all» sentinel ({@see PermissionDictionary::VALUE_VARIATION_ALL}) is never a template ID, so it stays untouched. Only multivariables permissions store a template ID in VALUE; toggler permissions (e.g. CREATE) keep a yes/no flag there, so the cleanup is narrowed to multivariables PERMISSION_IDs to avoid wiping toggler grants whose VALUE happens to equal the deleted template ID.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/workflow/template/entity/workflowtemplate.php