[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / authRoles

# Function: authRoles()

> **authRoles**(`options?`): [`RoleProvider`](../interfaces/RoleProvider)

Defined in: [admin/src/authRoles.ts:80](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/authRoles.ts#L80)

Build a [RoleProvider](../interfaces/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`](../interfaces/AuthRolesOptions) = `{}`

## Returns

[`RoleProvider`](../interfaces/RoleProvider)
