-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
…BC Public Institutions
@@ -468,6 +469,7 @@ export const institutionRoutes: Array<RouteRecordRaw> = [ | |||
component: InstitutionStudentProfile, | |||
meta: { | |||
clientType: ClientIdType.Institution, | |||
allowOnlyBCPublic: true, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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 👍
There was a problem hiding this 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 👍
Based on the route meta property
allowOnlyBCPublic
block access for non BC Public Institution users from accessing routes which are for BCPublic institutions.