mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
csharp: removed rename action for anonymous
This commit is contained in:
@ -205,7 +205,6 @@
|
|||||||
'onRequestInsertImage': onRequestInsertImage,
|
'onRequestInsertImage': onRequestInsertImage,
|
||||||
'onRequestCompareFile': onRequestCompareFile,
|
'onRequestCompareFile': onRequestCompareFile,
|
||||||
"onRequestMailMergeRecipients": onRequestMailMergeRecipients,
|
"onRequestMailMergeRecipients": onRequestMailMergeRecipients,
|
||||||
"onRequestRename": onRequestRename
|
|
||||||
};
|
};
|
||||||
|
|
||||||
<% if (!string.IsNullOrEmpty(History) && !string.IsNullOrEmpty(HistoryData))
|
<% if (!string.IsNullOrEmpty(History) && !string.IsNullOrEmpty(HistoryData))
|
||||||
@ -237,6 +236,8 @@
|
|||||||
var data = JSON.stringify(event.data);
|
var data = JSON.stringify(event.data);
|
||||||
innerAlert("onRequestSendNotify: " + data);
|
innerAlert("onRequestSendNotify: " + data);
|
||||||
};
|
};
|
||||||
|
// prevent file renaming for anonymous users
|
||||||
|
config.events['onRequestRename'] = onRequestRename;
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
if (config.editorConfig.createUrl) {
|
if (config.editorConfig.createUrl) {
|
||||||
|
|||||||
@ -65,7 +65,8 @@ namespace OnlineEditorsExample
|
|||||||
"The file favorite state is undefined",
|
"The file favorite state is undefined",
|
||||||
"Can't mention others in comments",
|
"Can't mention others in comments",
|
||||||
"Can't create new files from the editor",
|
"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"
|
||||||
};
|
};
|
||||||
|
|
||||||
private static List<User> users = new List<User>() {
|
private static List<User> users = new List<User>() {
|
||||||
|
|||||||
Reference in New Issue
Block a user