canManageServerRoles function

bool canManageServerRoles(
  1. Iterable<String> actorRoles,
  2. Iterable<String> targetRoles,
  3. Map<String, ServerRoleDefinition> roles
)

Implementation

bool canManageServerRoles(
  Iterable<String> actorRoles,
  Iterable<String> targetRoles,
  Map<String, ServerRoleDefinition> roles,
) =>
    highestRolePriority(actorRoles, roles) >
    highestRolePriority(targetRoles, roles);