mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-18 01:40:05 -04:00
fix MyFiles cut/copy command #5704
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
1e9607ba8e
commit
c546333cf7
@ -898,8 +898,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||||||
}
|
}
|
||||||
else if ((command.fileop == 'copy') || (command.fileop == 'move')) {
|
else if ((command.fileop == 'copy') || (command.fileop == 'move')) {
|
||||||
// Copy or move of one or many files
|
// Copy or move of one or many files
|
||||||
if (common.validateArray(command.name, 1) == false) return;
|
if (common.validateArray(command.names, 1) == false) return;
|
||||||
var scpath = meshPathToRealPath(command.path, user); // This will also check access rights
|
var scpath = meshPathToRealPath(command.scpath, user); // This will also check access rights
|
||||||
if (scpath == null) break;
|
if (scpath == null) break;
|
||||||
// TODO: Check quota if this is a copy
|
// TODO: Check quota if this is a copy
|
||||||
for (i in command.names) {
|
for (i in command.names) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user