mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 06:05:53 -05:00
Fixed broadcast feature.
This commit is contained in:
parent
b824499b40
commit
46dd1c666b
@ -646,7 +646,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||||||
{
|
{
|
||||||
// Broadcast a message to all currently connected users.
|
// Broadcast a message to all currently connected users.
|
||||||
if ((user.siteadmin & 2) == 0) break;
|
if ((user.siteadmin & 2) == 0) break;
|
||||||
if (obj.common.validateUsername(command.msg, 1, 256) == false) break; // Notification message is between 1 and 256 characters
|
if (obj.common.validateString(command.msg, 1, 256) == false) break; // Notification message is between 1 and 256 characters
|
||||||
|
|
||||||
// Create the notification message
|
// Create the notification message
|
||||||
var notification = { "action": "msg", "type": "notify", "value": command.msg };
|
var notification = { "action": "msg", "type": "notify", "value": command.msg };
|
||||||
|
Loading…
Reference in New Issue
Block a user