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

#582 - Restrict non BC Public Institutions from accessing Routes for BC Public institutions #1898

Merged
merged 3 commits into from
Apr 21, 2023

Conversation

dheepak-aot
Copy link
Collaborator

Based on the route meta property allowOnlyBCPublic block access for non BC Public Institution users from accessing routes which are for BCPublic institutions.

@@ -468,6 +469,7 @@ export const institutionRoutes: Array<RouteRecordRaw> = [
component: InstitutionStudentProfile,
meta: {
clientType: ClientIdType.Institution,
allowOnlyBCPublic: true,
Copy link
Contributor

@ann-aot ann-aot Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wanted to check if, adding allowOnlyBCPublic to the parent (line 457) will it protect all its children. As discussed, you can just try and check

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested by using allowOnlyBCPublic in parent onluy and it works perfectly. thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for trying it. As discussed, we can test and remove the other meta from the children in another ticket

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 17.93% ( 1968 / 10975 )
Methods: 8.08% ( 115 / 1424 )
Lines: 20.65% ( 1724 / 8350 )
Branches: 10.74% ( 129 / 1201 )

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 65.01% ( 353 / 543 )
Methods: 53.62% ( 37 / 69 )
Lines: 67.24% ( 312 / 464 )
Branches: 40% ( 4 / 10 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 32.41% ( 176 / 543 )
Methods: 21.25% ( 17 / 80 )
Lines: 39.25% ( 157 / 400 )
Branches: 3.17% ( 2 / 63 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 38.94% ( 2634 / 6765 )
Methods: 30.91% ( 272 / 880 )
Lines: 44.4% ( 2240 / 5045 )
Branches: 14.52% ( 122 / 840 )

Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work @dheepak-aot

Copy link
Collaborator

@andrepestana-aot andrepestana-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ann-aot ann-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work @dheepak-aot 👍

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, looks good 👍

@dheepak-aot dheepak-aot merged commit 2a7e478 into main Apr 21, 2023
@dheepak-aot dheepak-aot temporarily deployed to DEV April 21, 2023 00:58 — with GitHub Actions Inactive
@dheepak-aot dheepak-aot temporarily deployed to DEV April 21, 2023 00:58 — with GitHub Actions Inactive
@dheepak-aot dheepak-aot temporarily deployed to DEV April 21, 2023 01:08 — with GitHub Actions Inactive
@dheepak-aot dheepak-aot deleted the improvements/restrict-non-bc-public branch April 24, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants