forked from unimatrix/web
Register explicit DuneStaff permissions and audited staff policy activation
This commit is contained in:
parent
8404c61329
commit
6e27d69a09
4 changed files with 96 additions and 3 deletions
|
|
@ -348,6 +348,24 @@
|
|||
"label": "Use voice chat groups",
|
||||
"source": "Simple Voice Chat 2.6.25 plugin.yml",
|
||||
"highRisk": false
|
||||
},
|
||||
{
|
||||
"node": "dunestaff.fly",
|
||||
"label": "Staff self flight",
|
||||
"source": "DuneStaff explicit command or visibility check",
|
||||
"highRisk": true
|
||||
},
|
||||
{
|
||||
"node": "dunestaff.vanish",
|
||||
"label": "Staff self vanish",
|
||||
"source": "DuneStaff explicit command or visibility check",
|
||||
"highRisk": true
|
||||
},
|
||||
{
|
||||
"node": "dunestaff.vanish.see",
|
||||
"label": "See vanished staff",
|
||||
"source": "DuneStaff explicit command or visibility check",
|
||||
"highRisk": true
|
||||
}
|
||||
],
|
||||
"networkAdministratorRoles": [
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {NODES} from './permissions.mjs';
|
||||
import {ORGANISATION} from './organisation-model.mjs';
|
||||
import {validatePolicyNodes} from './organisation-management.mjs';
|
||||
const staff=['web.menu.staffmanual','web.mail.internal.view'];
|
||||
const staff=['web.menu.staffmanual','web.mail.internal.view','dunestaff.fly','dunestaff.vanish','dunestaff.vanish.see'];
|
||||
const branchNodes={
|
||||
customer_support:['web.tickets.support','web.tickets.staff','web.menu.tickets','web.accounts.view','dune.tickets.staff','dune.staff.open','dune.staff.history'],
|
||||
sales_accounts:['web.tickets.sales','web.tickets.staff','web.menu.tickets','web.shop.support','web.accounts.view','web.bank.staff.view','web.bank.staff.clients'],
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ const privileged=value=>{
|
|||
const node=value.startsWith('cp.')?'web.'+value.slice(3):value;
|
||||
return /^web\.(accounts\.|ranks\.|servers\.|luckperms\.|tickets\.|bank\.staff\.|payroll\.|posts\.(edit|publish)|items\.manage|bans\.|forum\.(moderate|admin)|git\.admin|community\.manage|quests\.manage)/.test(node)
|
||||
||/^dune\.(admin|staff\.|moderation\.|ban\.|unban\.|items\.give|tickets\.staff)/.test(node)
|
||||
||node.startsWith('duneprotect.')||/^dunelobby\.(admin|build)$/.test(node)
|
||||
||node.startsWith('dunestaff.')||node.startsWith('duneprotect.')||/^dunelobby\.(admin|build)$/.test(node)
|
||||
||/^web\.menu\.(?:administration|staffmanual|permissions|servers|luckperms|bans|forum|items|posts|tickets)$/.test(node)
|
||||
||/^web\.(?:shop\.support|bank\.projects\.approve|mail\.staff\.)/.test(node);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
import {JARVIS_IDENTITY,isJarvisIdentity} from './jarvis-identity.mjs';
|
||||
import {organisationRuntimeAccess} from './organisation-runtime.mjs';
|
||||
export const NODES={
|
||||
'dunestaff.fly':'Toggle your own staff flight',
|
||||
'dunestaff.vanish':'Toggle your own staff vanish',
|
||||
'dunestaff.vanish.see':'See vanished staff',
|
||||
'web.jarvis.clans.reset':'Issue and redeem fixed protected-clan roster reset keys',
|
||||
'web.jarvis.keys.view':'Browse JARVIS masterkey templates',
|
||||
'web.jarvis.accounts.test-identity':'Issue and redeem synthetic test identities for unlinked accounts',
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff