Skip to content

Commit

Permalink
fix: revert on certification url policies
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Mar 23, 2021
1 parent fcfe116 commit 0bd67c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schema/revert/policies/certification_url_policies.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0bd67c4

Please sign in to comment.