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.
Parameters
Section titled “Parameters”…readonly string[]
Returns
Section titled “Returns”CustomDecorator<string>