mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Meshctrl.js now shows access denies if you can't access users list.
This commit is contained in:
parent
442a3029a3
commit
89e126b976
2 changed files with 7 additions and 6 deletions
|
@ -1291,7 +1291,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
case 'users':
|
||||
{
|
||||
// Request a list of all users
|
||||
if ((user.siteadmin & 2) == 0) break;
|
||||
if ((user.siteadmin & 2) == 0) { if (command.responseid != null) { try { ws.send(JSON.stringify({ action: 'users', responseid: command.responseid, result: 'Access denied' })); } catch (ex) { } } break; }
|
||||
var docs = [];
|
||||
for (i in parent.users) {
|
||||
if (((obj.crossDomain === true) || (parent.users[i].domain == domain.id)) && (parent.users[i].name != '~')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue