mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
- Extract ProfileScreen and components to features/profile - Move shared hooks and stores to top-level - Add RLS policies for admin permissions - Add RELEASING.md guide - Update .gitignore
18 lines
668 B
SQL
18 lines
668 B
SQL
-- Add RLS policies for redemption codes
|
|
|
|
CREATE POLICY "Admins with manage_codes permission can view redemption codes"
|
|
ON redemption_codes FOR SELECT
|
|
USING (has_permission('manage_codes'));
|
|
|
|
CREATE POLICY "Admins with manage_codes permission can insert redemption codes"
|
|
ON redemption_codes FOR INSERT
|
|
WITH CHECK (has_permission('manage_codes'));
|
|
|
|
CREATE POLICY "Admins with manage_codes permission can update redemption codes"
|
|
ON redemption_codes FOR UPDATE
|
|
USING (has_permission('manage_codes'));
|
|
|
|
CREATE POLICY "Admins with manage_codes permission can delete redemption codes"
|
|
ON redemption_codes FOR DELETE
|
|
USING (has_permission('manage_codes'));
|