Skip to content

WriteAppRoleInstance

Defined in: runtime/app.ts:30

readonly prn: string

Defined in: runtime/role.ts:5

ReadAppRoleInstance.prn

assertRole(): true

Defined in: runtime/app.ts:21

Asserts that the current, active instance has the current role. If successful, this will return true. Otherwise it will throw an Error.

true

ReadAppRoleInstance.assertRole


assign(user): Promise<void>

Defined in: runtime/app.ts:35

Assigns the given user to this role. Note that assignments do not affect the current session/user.

BaseIdentityUserItem | "current"

Promise<void>


checkRole(): boolean

Defined in: runtime/app.ts:27

Checks that the current, active instance has the current role; returning true/false if that role is present.

boolean

ReadAppRoleInstance.checkRole


revoke(user): Promise<boolean>

Defined in: runtime/app.ts:41

Revokes the user from this role. Returns true if this was successful; false if the user did not have the role.

BaseIdentityUserItem

Promise<boolean>