Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / authRoles

Function: authRoles()

authRoles(options?): RoleProvider

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

Build a RoleProvider over the framework's roles and permissions.

Listing fails soft — an unconfigured database or a missing table yields an empty page rather than a broken panel — while writes report their failures, because silently not saving a permission change is the worst outcome here.

Parameters

options?

AuthRolesOptions = {}

Returns

RoleProvider