Skip to content

Function: forbiddenMessage() ​

ts
function forbiddenMessage(requirement): string;

Defined in: packages/next/src/responses.ts:13

Like spatie, the message names the kind of requirement but not the role/permission names.

Parameters ​

ParameterType
requirementRequirement

Returns ​

string

Released under the MIT License. Inspired by spatie/laravel-permission.