Partial class HostPolicyService, admin-related part. Implements ReadRoleLabels which returns "owner" for the server owner or queries the policy resolver for applicable groups for the given Steam ID.
namespace SboxSuperuser.Engine.Authority;
internal sealed partial class HostPolicyService
{
// Only called after the administration query has authorized a moderation reader.
internal string[] ReadRoleLabels( string steamId ) => IsOwner( steamId ) ? new[] { "owner" }
: _resolver.Policy.ApplicableGroups( steamId ).ToArray();
}