Code/SboxSuperuser/Engine/Authority/HostPolicyService.Admin.cs

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.

Networking
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();
}