Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: view annoucement link for cbc_admin #3479

Merged
merged 5 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.180.4](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.180.3...v1.180.4) (2024-08-19)

### Bug Fixes

- view annoucement link for cbc_admin ([b98eb7d](https://github.com/bcgov/CONN-CCBC-portal/commit/b98eb7d19089eb21056ae94ad762728311a73a68))

## [1.180.3](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.180.2...v1.180.3) (2024-08-19)

### Bug Fixes
Expand Down
3 changes: 2 additions & 1 deletion app/backend/lib/linkPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ linkPreview.post('/api/announcement/linkPreview', limiter, (req, res) => {
const isRoleAuthorized =
authRole?.pgRole === 'ccbc_admin' ||
authRole?.pgRole === 'ccbc_analyst' ||
authRole?.pgRole === 'super_admin';
authRole?.pgRole === 'super_admin' ||
authRole?.pgRole === 'cbc_admin';
if (!isRoleAuthorized) {
return res.status(404).end();
}
Expand Down
1 change: 1 addition & 0 deletions db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -633,3 +633,4 @@ computed_columns/application_history [computed_columns/[email protected]
computed_columns/application_project_name [computed_columns/[email protected]] 2024-08-02T20:45:20Z ,,, <ryohani89@NH504670> # Include project name from sow data
@1.180.2 2024-08-19T21:51:41Z CCBC Service Account <[email protected]> # release v1.180.2
@1.180.3 2024-08-19T22:12:14Z CCBC Service Account <[email protected]> # release v1.180.3
@1.180.4 2024-08-19T22:41:47Z CCBC Service Account <[email protected]> # release v1.180.4
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.180.3",
"version": "1.180.4",
"main": "index.js",
"repository": "https://github.com/bcgov/CONN-CCBC-portal.git",
"author": "Romer, Meherzad CITZ:EX <[email protected]>",
Expand Down
Loading