Skip to content

Commit

Permalink
feat(server/accounts): accountRole(s) GlobalStates
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jul 30, 2024
1 parent 761e94b commit 3cebe05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/accounts/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ async function LoadRoles() {
delete role.id;

accountRoles[roleName] = role;
GlobalState[`accountRole.${roleName}`] = role;
});

GlobalState[`accountRoles`] = Object.keys(accountRoles);
}

setImmediate(LoadRoles);

0 comments on commit 3cebe05

Please sign in to comment.