From c54c8977034647de5418d8ba69661a0d7a4c60c0 Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Fri, 17 Jul 2026 23:08:26 +0200 Subject: [PATCH] fiix(server): fixes some access thing --- src/ReverseLlama.Server/ManagementStore.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ReverseLlama.Server/ManagementStore.cs b/src/ReverseLlama.Server/ManagementStore.cs index 5dc4062..8ad2d01 100644 --- a/src/ReverseLlama.Server/ManagementStore.cs +++ b/src/ReverseLlama.Server/ManagementStore.cs @@ -871,7 +871,7 @@ internal sealed class ManagementStore var groupIds = GetApiKeyGroupIdsLocked(apiKeyId); if (groupIds.Count == 0) { - return GroupAccess.Unrestricted; + return GroupAccess.Empty; } var clientModels = new HashSet(StringComparer.OrdinalIgnoreCase); @@ -1281,6 +1281,8 @@ internal sealed class GroupAccess { public static GroupAccess Unrestricted { get; } = new(new HashSet(), new HashSet(), isUnrestricted: true); + public static GroupAccess Empty { get; } = new(new HashSet(), new HashSet()); + public IReadOnlySet ClientModels { get; } public IReadOnlySet AllClients { get; }