Documentation
    Preparing search index...

    Function block

    • Block an identity.

      A blocked identity fails all capability checks regardless of granted caps. The caps bitfield is preserved — unblocking restores previous capabilities. Returns a new AclState — the original is not modified.

      Parameters

      Returns AclState

      New AclState with the identity blocked

      const state2 = block(state, id);
      check(state2, id, CAP_RELAY_READ); // false (blocked)