Skip to content

Commit

Permalink
Merge pull request #3636 from bcgov/NDT-585-Application-Template-9-gr…
Browse files Browse the repository at this point in the history
…ant-access

fix: add missing access to app template 9 table
  • Loading branch information
ccbc-service-account authored Nov 7, 2024
2 parents 82fd8ef + 770edb3 commit 716f605
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.206.1](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.206.0...v1.206.1) (2024-11-07)

### Bug Fixes

- add missing access to app template 9 table ([a2f56b6](https://github.com/bcgov/CONN-CCBC-portal/commit/a2f56b65aee1e3dc0ddb15c52cdb2745da68cd31))

# [1.206.0](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.205.0...v1.206.0) (2024-11-07)

### Features
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- Deploy ccbc:tables/application_form_template_9_data_001_add_missing_roles to pg

BEGIN;

do
$grant$
begin

-- Grant cbc_admin permissions
perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'cbc_admin');
perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'cbc_admin');
perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'cbc_admin');

-- Grant analyst account permissions
perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'ccbc_analyst');
perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'ccbc_analyst');
perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'ccbc_analyst');

-- Grant super_admin account permissions
perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'super_admin');
perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'super_admin');
perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'super_admin');

end
$grant$;

COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert ccbc:tables/application_form_template_9_data_001_add_missing_roles from pg

BEGIN;

-- XXX Add DDLs here.

COMMIT;
2 changes: 2 additions & 0 deletions db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -725,3 +725,5 @@ grant_read_access_to_service_account 2024-10-04T18:45:20Z Anthony Bushara <antho
@1.204.0 2024-11-05T20:41:06Z CCBC Service Account <ccbc@button.is> # release v1.204.0
@1.205.0 2024-11-05T20:57:02Z CCBC Service Account <ccbc@button.is> # release v1.205.0
@1.206.0 2024-11-07T16:34:36Z CCBC Service Account <ccbc@button.is> # release v1.206.0
tables/application_form_template_9_data_001_add_missing_roles 2024-10-21T17:22:37Z Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> # grant missing roles access to application template 9 table
@1.206.1 2024-11-07T22:41:03Z CCBC Service Account <ccbc@button.is> # release v1.206.1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CONN-CCBC-portal",
"version": "1.206.0",
"version": "1.206.1",
"main": "index.js",
"repository": "https://github.com/bcgov/CONN-CCBC-portal.git",
"author": "Romer, Meherzad CITZ:EX <Meherzad.Romer@gov.bc.ca>",
Expand Down

0 comments on commit 716f605

Please sign in to comment.