1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed various server exceptions.

This commit is contained in:
Ylian Saint-Hilaire 2022-12-10 12:02:33 -08:00
parent 964fc9fd00
commit 79faaaee1f
4 changed files with 9 additions and 8 deletions

View file

@ -4485,6 +4485,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
// Subscribe to all events we are allowed to receive
obj.subscribe = function (userid, target) {
const user = obj.users[userid];
if (user == null) return;
const subscriptions = [userid, 'server-allusers'];
if (user.siteadmin != null) {
// Allow full site administrators of users with all events rights to see all events.