From 87fb3f17ed980aeefc08cd4c187d4c64582c19b2 Mon Sep 17 00:00:00 2001 From: Ruggero Tomaselli Date: Sun, 12 Feb 2023 16:25:59 +0100 Subject: [PATCH] Disble loading permissions on self-host --- studio/hooks/misc/withAuth.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/studio/hooks/misc/withAuth.tsx b/studio/hooks/misc/withAuth.tsx index b41734cb1c8..d2cdc5d94fd 100644 --- a/studio/hooks/misc/withAuth.tsx +++ b/studio/hooks/misc/withAuth.tsx @@ -50,6 +50,7 @@ export function withAuth( }) usePermissionsQuery({ + enabled: IS_PLATFORM, onSuccess(permissions) { ui.setPermissions(permissions) },