csharp: removed rename action for anonymous

This commit is contained in:
Olga Larinova
2022-03-18 15:08:20 +03:00
parent 3a4cf5e6e6
commit e818bb978b
2 changed files with 4 additions and 2 deletions

View File

@ -205,7 +205,6 @@
'onRequestInsertImage': onRequestInsertImage,
'onRequestCompareFile': onRequestCompareFile,
"onRequestMailMergeRecipients": onRequestMailMergeRecipients,
"onRequestRename": onRequestRename
};
<% if (!string.IsNullOrEmpty(History) && !string.IsNullOrEmpty(HistoryData))
@ -237,6 +236,8 @@
var data = JSON.stringify(event.data);
innerAlert("onRequestSendNotify: " + data);
};
// prevent file renaming for anonymous users
config.events['onRequestRename'] = onRequestRename;
<% } %>
if (config.editorConfig.createUrl) {

View File

@ -65,7 +65,8 @@ namespace OnlineEditorsExample
"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"
};
private static List<User> users = new List<User>() {