Fixed for server exception when uploading a file to many devices with user group account. #3259
Ylian Saint-Hilaire committed
Nov 18, 2021 at 20:05 UTC
397523e8169453af79d9e3491cc0a25008c85d01
1 file changed
+1
-1
webserver.js
+1
-1
@@ -3966,7 +3966,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
3966
if ((mesh != null) && (user.links != null) && (user.links[mesh._id] == null) && (user.links[node._id] == null)) {
3967
// This user does not have a direct link to the device group or device. Find all user groups the would cause the link.
3968
for (var i in user.links) {
3969
- var ugrp = parent.userGroups[i];
3969
+ var ugrp = obj.userGroups[i];
3970
if ((ugrp != null) && (ugrp.consent != null) && (ugrp.links != null) && ((ugrp.links[mesh._id] != null) || (ugrp.links[node._id] != null))) {
3971
consent |= ugrp.consent; // Add user group consent flags
3972
}