Table of Contents

Class PermissionResolver

Namespace
Shard.Server.Modules
Assembly
Shard.Server.Modules.dll

"Deny wins" evaluation of a single permission-node set, ported faithfully from the upstream PermissionsModule.hasPermission. Returns a tri-state: true (granted), false (denied), or null (unset — the caller falls through to the next set or a default). Precedence:

  1. -* root deny
  2. exact deny -node
  3. exact grant node
  4. deny wildcards, most specific to least
  5. * root grant
  6. grant wildcards, least specific to most
  7. unset (null)
public static class PermissionResolver
Inheritance
PermissionResolver
Inherited Members

Methods

Evaluate(IReadOnlySet<string>?, string)

public static bool? Evaluate(IReadOnlySet<string>? nodes, string id)

Parameters

nodes IReadOnlySet<string>
id string

Returns

bool?