mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 21:02:53 -05:00
fix guest sharing file download with userallowedip showing unauthorised #7261
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -3887,7 +3887,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
|
||||
// Handle device file request
|
||||
function handleDeviceFile(req, res) {
|
||||
const domain = checkUserIpAddress(req, res);
|
||||
const domain = getDomain(req, res);
|
||||
if (domain == null) { return; }
|
||||
if ((req.query.c == null) || (req.query.f == null)) { res.sendStatus(404); return; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user