Build the new public staff directory and audited Great Migration appointments

This commit is contained in:
unimatrixgit 2026-11-15 02:31:58 +01:00
commit fc9549ee71

View file

@ -1,5 +1,5 @@
import {validStaffRole} from './organisation-model.mjs';
const nativeEditors=new Set(['web.luckperms.edit','cp.luckperms.edit','luckperms.editor','luckperms.applyedits','luckperms.trusteditor']);
const nativeEditors=new Set(['web.forum.admin','web.luckperms.edit','cp.luckperms.edit','luckperms.editor','luckperms.applyedits','luckperms.trusteditor']);
const officialBank=new Set(['web.bank.staff.manage','cp.bank.staff.manage','web.bank.staff.deposit','cp.bank.staff.deposit']);
// Pure preview: never changes legacy ranks or grants native product permissions.
export function effectiveOrganisationAccess({assignments,policies,registry,principalKind=null,now=Date.now()}){