Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / AuthRolesOptions

Interface: AuthRolesOptions

Defined in: admin/src/authRoles.ts:22

Properties

guard?

optional guard?: string

Defined in: admin/src/authRoles.ts:27

Guard the roles belong to. Defaults to "web", matching the framework's own default, so most apps need not think about it.


superusers?

optional superusers?: string[]

Defined in: admin/src/authRoles.ts:35

Role names that hold every permission.

Named rather than inferred, because "administrator" is a convention and not something the data can tell you. A superuser role is shown as holding everything and cannot be edited or deleted from the panel.