Skip to content

SudoSOS Back-end API / rbac / DefaultRoles

Class: DefaultRoles ​

Static class defining all default roles present in SudoSOS. These roles are hardcoded and cannot be changed by the user. They should only contain basic functionality that is bound to one or more types of users.

Constructors ​

Constructor ​

ts
new DefaultRoles(): DefaultRoles;

Returns ​

DefaultRoles

Accessors ​

definitions ​

Get Signature ​

ts
get static definitions(): DefaultRole[];
Returns ​

DefaultRole[]

Methods ​

synchronize() ​

ts
static synchronize(): Promise<Role[]>;

Synchronize all default roles with the database

Returns ​

Promise<Role[]>