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

***

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

# Function: roleHas()

> **roleHas**(`role`, `held`, `key`): `boolean`

Defined in: [admin/src/roles.ts:173](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/roles.ts#L173)

Whether a role holds a permission.

A superuser holds everything by definition, which is what keeps the matrix
honest about what such a role can actually do.

## Parameters

### role

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

### held

`string`[]

### key

`string`

## Returns

`boolean`
