Skip to content

basalt / permissions/src / AudienceRule

Interface: AudienceRule ​

Defined in: permissions/src/index.ts:98

A set of roles confined to a set of surfaces.

ts
audiences: { portal: { roles: ['client'], allow: ['portal', 'public'] } }

Properties ​

allow ​

> allow: string[]

Defined in: permissions/src/index.ts:102

The meta.audience values those roles may reach.


roles ​

> roles: string[]

Defined in: permissions/src/index.ts:100

Roles this rule confines.

Released under the MIT License.