From 66a467436049166248ddbe1a380f532bdbf4cda7 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Tue, 16 Dec 2025 09:16:41 +0000 Subject: [PATCH] fix: restore RBAC cache keys after rebase --- surfsense_web/lib/query-client/cache-keys.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/surfsense_web/lib/query-client/cache-keys.ts b/surfsense_web/lib/query-client/cache-keys.ts index 28e9396c9..6ac7c6a6e 100644 --- a/surfsense_web/lib/query-client/cache-keys.ts +++ b/surfsense_web/lib/query-client/cache-keys.ts @@ -45,4 +45,11 @@ export const cacheKeys = { user: { current: () => ["user", "me"] as const, }, + roles: { + all: (searchSpaceId: string) => ["roles", searchSpaceId] as const, + byId: (searchSpaceId: string, roleId: string) => ["roles", searchSpaceId, roleId] as const, + }, + permissions: { + all: () => ["permissions"] as const, + }, };