fix MyFiles cut/copy command #5704

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-01-17 15:53:34 +00:00
parent 1e9607ba8e
commit c546333cf7
1 changed files with 2 additions and 2 deletions

View File

@ -898,8 +898,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
else if ((command.fileop == 'copy') || (command.fileop == 'move')) {
// Copy or move of one or many files
if (common.validateArray(command.name, 1) == false) return;
var scpath = meshPathToRealPath(command.path, user); // This will also check access rights
if (common.validateArray(command.names, 1) == false) return;
var scpath = meshPathToRealPath(command.scpath, user); // This will also check access rights
if (scpath == null) break;
// TODO: Check quota if this is a copy
for (i in command.names) {