java-spring: removed rename action for anonymous

This commit is contained in:
Olga Larinova
2022-03-18 15:02:45 +03:00
parent e4c72c98d1
commit fcfb6efda7
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,8 @@ public class ExampleData {
"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"
);
List<String> description_user_1 = List.of( // the description for user 1
"File author by default",

View File

@ -172,7 +172,6 @@
"onRequestInsertImage": onRequestInsertImage,
"onRequestCompareFile": onRequestCompareFile,
"onRequestMailMergeRecipients": onRequestMailMergeRecipients,
"onRequestRename": onRequestRename,
};
var histArray = [[${fileHistory}]];
@ -210,6 +209,8 @@
var data = JSON.stringify(event.data);
innerAlert("onRequestSendNotify: " + data);
};
// prevent file renaming for anonymous users
config.events['onRequestRename'] = onRequestRename;
}
if (config.editorConfig.createUrl) {