python: removed rename action for anonymous

This commit is contained in:
Olga Larinova
2022-03-18 14:56:17 +03:00
parent 2c12393c78
commit c2bbda542a
2 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,8 @@ descr_user_0 = [
"The file favorite state is undefined",
"Can't mention others in comments",
"Can't create new files from the editor",
"Cant see anyones information"
"Cant see anyones information",
"Can't rename files from the editor"
]
USERS = [

View File

@ -191,7 +191,6 @@
'onRequestInsertImage': onRequestInsertImage,
'onRequestCompareFile': onRequestCompareFile,
"onRequestMailMergeRecipients": onRequestMailMergeRecipients,
"onRequestRename": onRequestRename,
};
{% if history and historyData %}
@ -227,6 +226,8 @@
var data = JSON.stringify(event.data);
innerAlert("onRequestSendNotify: " + data);
};
// prevent file renaming for anonymous users
config.events['onRequestRename'] = onRequestRename;
{% endif %}