Update
This commit is contained in:
parent
8e602c533f
commit
d98d59705a
|
|
@ -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 ) );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue