Skip to content

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

Make vault read only through table editor and database page

Joshen Lim6eb8f237dbb6
diff --git a/studio/stores/pgmeta/MetaStore.ts b/studio/stores/pgmeta/MetaStore.ts
index 0e3e1bc3057..7829d7a7d77 100644
--- a/studio/stores/pgmeta/MetaStore.ts
+++ b/studio/stores/pgmeta/MetaStore.ts
@@ -157,6 +157,7 @@ export default class MetaStore implements IMetaStore {
'realtime',
'storage',
'supabase_functions',
+ 'vault',
'graphql',
'graphql_public',
]
@@ -299,7 +300,7 @@ export default class MetaStore implements IMetaStore {
publish_insert: true,
publish_update: true,
publish_delete: true,
- tables: []
+ tables: [],
})
if (publicationCreateError) throw publicationCreateError
realtimePublication = publication
@@ -315,7 +316,7 @@ export default class MetaStore implements IMetaStore {
: publicTables
.filter((t: any) => t.id !== table.id)
.map((t: any) => `${t.schema}.${t.name}`)
- const { error } = await this.publications.update(id, { tables: realtimeTables })
+ const { error } = await this.publications.update(id, { tables: realtimeTables })
publicationUpdateError = error
} else {
const isAlreadyEnabled = publicationTables.some((x: any) => x.id == table.id)