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:
parent
964fc9fd00
commit
79faaaee1f
4 changed files with 9 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue