Skip to content

RequireRole

RequireRole(…roles): CustomDecorator<string>

Requires a session whose user has at least one of roles, read through the module’s roles option on every request. On a controller and a handler both, each list must be satisfied.

…readonly string[]

CustomDecorator<string>