Setu-TS
    Preparing search index...

    Interface ScopedRbacTarget

    The target of a scoped check: the scope, and — from a guard or decorator — the request context, which lets the evaluator memoise grants for the rest of the request and compare the scope against the resolved request tenant.

    A null scope asks about global grants only.

    0.9.0

    interface ScopedRbacTarget {
        context?: IRequestContext;
        scope: ScopeRef | null;
    }
    Index
    context?: IRequestContext

    The request being authorized, when there is one. Pass it whenever the check serves a request: without it the scope is not compared against the request's resolved tenant, so a check for another tenant is answered from the grants alone.

    scope: ScopeRef | null

    The scope the check is about, or null for global grants only.