php: removed rename action

This commit is contained in:
Olga Larinova
2022-03-18 14:36:46 +03:00
parent b8b375a19a
commit a0bf7db118
2 changed files with 7 additions and 1 deletions

View File

@ -487,6 +487,11 @@
'onRequestMailMergeRecipients': onRequestMailMergeRecipients,
};
// prevent file renaming for anonymous users
<?php if ($usersForMentions === null): ?>
config.events['onRequestRename'] = onRequestRename;
<?php endif; ?>
<?php
$out = getHistory($filename, $filetype, $docKey, $fileuri);
$history = $out[0];