From 0bd67c45aebc6aec67b104805f02efb147f8f468 Mon Sep 17 00:00:00 2001 From: Pierre Bastianelli Date: Wed, 17 Mar 2021 15:24:56 -0700 Subject: [PATCH] fix: revert on certification url policies --- schema/revert/policies/certification_url_policies.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schema/revert/policies/certification_url_policies.sql b/schema/revert/policies/certification_url_policies.sql index c1d5ec12ab..47df00ce8c 100644 --- a/schema/revert/policies/certification_url_policies.sql +++ b/schema/revert/policies/certification_url_policies.sql @@ -9,6 +9,8 @@ $policy$ certifier_user_statement text; begin + certifier_user_statement := 'certifier_email = ((select email_address from ggircs_portal.ciip_user where ciip_user.uuid = (select sub from ggircs_portal.session())))'; + -- ciip_industry_user (certifier) RLS perform ggircs_portal_private.upsert_policy('certifier_select_certification_url', 'certification_url', 'select', 'ciip_industry_user', certifier_user_statement); perform ggircs_portal_private.upsert_policy('certifier_update_certification_url', 'certification_url', 'update', 'ciip_industry_user', certifier_user_statement);