Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Disble loading permissions on self-host

Ruggero Tomaselli87fb3f17ed98
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<T>(
})
usePermissionsQuery({
+ enabled: IS_PLATFORM,
onSuccess(permissions) {
ui.setPermissions(permissions)
},