mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Add plugin "type" to plugins (permission sets coming soon)
This commit is contained in:
parent
5e4bfb27b3
commit
9aa77c157f
2 changed files with 3 additions and 3 deletions
|
@ -3113,7 +3113,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
break;
|
||||
}
|
||||
case 'plugins': {
|
||||
// @Ylianst - Do we need a new permission set here?
|
||||
// Since plugin actions generally require a server restart, use the Full admin permission
|
||||
if ((user.siteadmin & 0xFFFFFFFF) == 0 || parent.parent.pluginHandler == null) break; // must be full admin with plugins enabled
|
||||
parent.db.getPlugins(function(err, docs) {
|
||||
try { ws.send(JSON.stringify({ action: 'updatePluginList', list: docs, result: err })); } catch (ex) { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue