This commit is contained in:
Josef 2025-11-10 20:27:50 +01:00
parent 8e602c533f
commit d98d59705a
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ export class UserManagementServer
{ {
this._userDB = await UserDB.load( this, this._settings.userDBPath ); this._userDB = await UserDB.load( this, this._settings.userDBPath );
RJLog.log( "Loading roles:", this._settings.rolesPath );
let rolesData = await Files.loadJSON<RolesData>( this._settings.rolesPath ); let rolesData = await Files.loadJSON<RolesData>( this._settings.rolesPath );
this._roles = new Map<string,Role>(); this._roles = new Map<string,Role>();
rolesData.roles.forEach( r => this._roles.set( r.id, r ) ); rolesData.roles.forEach( r => this._roles.set( r.id, r ) );