Documentation
    Preparing search index...

    Function resolvePermissionRule

    • Decide what the default rules say about one requirement. The most specific rule wins: napplet operation, napplet domain, napplet default, then the same three globally. Interface access has no operation, so it skips operation rules.

      Parameters

      Returns PermissionRuleAction

      Whether to allow, ask or deny when no stored decision applies.

      resolvePermissionRule(rules, principal, {
      category: 'resource', domain: 'link', operation: 'link.open',
      scope: { kind: 'exact', value: 'https://example.org/' },
      }); // 'ask'