mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
python: removed rename action for anonymous
This commit is contained in:
@ -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",
|
||||
"Can’t see anyone’s information"
|
||||
"Can’t see anyone’s information",
|
||||
"Can't rename files from the editor"
|
||||
]
|
||||
|
||||
USERS = [
|
||||
|
||||
@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user