mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed for server exception when uploading a file to many devices with user group account. #3259
This commit is contained in:
parent
a95341b171
commit
397523e816
1 changed files with 1 additions and 1 deletions
|
@ -3966,7 +3966,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
||||||
if ((mesh != null) && (user.links != null) && (user.links[mesh._id] == null) && (user.links[node._id] == null)) {
|
if ((mesh != null) && (user.links != null) && (user.links[mesh._id] == null) && (user.links[node._id] == null)) {
|
||||||
// This user does not have a direct link to the device group or device. Find all user groups the would cause the link.
|
// This user does not have a direct link to the device group or device. Find all user groups the would cause the link.
|
||||||
for (var i in user.links) {
|
for (var i in user.links) {
|
||||||
var ugrp = parent.userGroups[i];
|
var ugrp = obj.userGroups[i];
|
||||||
if ((ugrp != null) && (ugrp.consent != null) && (ugrp.links != null) && ((ugrp.links[mesh._id] != null) || (ugrp.links[node._id] != null))) {
|
if ((ugrp != null) && (ugrp.consent != null) && (ugrp.links != null) && ((ugrp.links[mesh._id] != null) || (ugrp.links[node._id] != null))) {
|
||||||
consent |= ugrp.consent; // Add user group consent flags
|
consent |= ugrp.consent; // Add user group consent flags
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue