GRANT anon users image viewing functionality

This commit is contained in:
thiloho
2024-09-10 18:13:00 +02:00
parent c5fbcdc8bd
commit c0288d2980
3 changed files with 3 additions and 14 deletions

View File

@@ -72,6 +72,8 @@ SECURITY DEFINER;
GRANT EXECUTE ON FUNCTION api.upload_file (BYTEA) TO authenticated_user;
GRANT EXECUTE ON FUNCTION api.retrieve_file (UUID) TO anon;
GRANT EXECUTE ON FUNCTION api.retrieve_file (UUID) TO authenticated_user;
-- migrate:down