Skip to content

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

Update storage policy allowed methods logic

Joshen Lim6f7210c5fbec
diff --git a/studio/components/to-be-cleaned/Storage/Storage.constants.ts b/studio/components/to-be-cleaned/Storage/Storage.constants.ts
index 8c8358362e3..1dfacc4d57a 100644
--- a/studio/components/to-be-cleaned/Storage/Storage.constants.ts
+++ b/studio/components/to-be-cleaned/Storage/Storage.constants.ts
@@ -38,16 +38,16 @@ export const STORAGE_POLICY_DEFAULT_DEFINITION_PLACEHOLDER = `/*
`
export const STORAGE_CLIENT_LIBRARY_MAPPINGS = {
- list: ['SELECT'],
upload: ['INSERT'],
download: ['SELECT'],
- copy: ['INSERT'],
- remove: ['SELECT', 'DELETE'],
- move: ['SELECT', 'UPDATE'],
+ list: ['SELECT'],
update: ['SELECT', 'UPDATE'],
+ move: ['SELECT', 'UPDATE'],
+ copy: ['SELECT', 'UPDATE'],
+ remove: ['SELECT', 'DELETE'],
createSignedUrl: ['SELECT'],
createSignedUrls: ['SELECT'],
- getPublicUrl: ['SELECT'],
+ getPublicUrl: [],
}
export const CONTEXT_MENU_KEYS = {