fix MyFiles cut/copy command #5704

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Jan 17, 2024 at 15:53 UTC c546333cf770160eeb1de8f76099c6a96714dc18
1 file changed +2 -2
meshuser.js
+2 -2
@@ -898,8 +898,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
898 }
899 else if ((command.fileop == 'copy') || (command.fileop == 'move')) {
900 // Copy or move of one or many files
901 - if (common.validateArray(command.name, 1) == false) return;
902 - var scpath = meshPathToRealPath(command.path, user); // This will also check access rights
901 + if (common.validateArray(command.names, 1) == false) return;
902 + var scpath = meshPathToRealPath(command.scpath, user); // This will also check access rights
903 if (scpath == null) break;
904 // TODO: Check quota if this is a copy
905 for (i in command.names) {