gatehouse-ts
    Preparing search index...

    Function buildNotPolicy

    • Creates a policy that inverts the result of another policy.

      Type Parameters

      • Sub

        Subject type

      • Res

        Resource type

      • Act

        Action type

      • Ctx

        Context type

      Parameters

      Returns NotPolicy<Sub, Res, Act, Ctx>

      A NOT policy that grants access when the original would deny it

      // Grant access to non-public resources
      const policy = buildNotPolicy(publicResourcePolicy);