-
Notifications
You must be signed in to change notification settings - Fork 0
Prod - April release #10
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,10 +35,10 @@ export class ScopesGuard implements CanActivate { | |
| const ok = required.some((s) => scopes.includes(s)); | ||
| if (ok) return true; | ||
|
|
||
| const fallbackRoles = this.reflector.getAllAndOverride<string[]>(ROLES_KEY, [ | ||
| context.getHandler(), | ||
| context.getClass(), | ||
| ]); | ||
| const fallbackRoles = this.reflector.getAllAndOverride<string[]>( | ||
| ROLES_KEY, | ||
| [context.getHandler(), context.getClass()], | ||
| ); | ||
|
|
||
|
Comment on lines
+38
to
42
|
||
| if (fallbackRoles && fallbackRoles.length > 0) { | ||
| const roles: string[] = Array.isArray(user.roles) | ||
|
|
||
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.
README claims billing-account management endpoints accept
administrator,Talent Manager, andTopcoder Talent ManagerJWT roles, butPATCH /billing-accounts/:billingAccountId/lock-amountandPATCH /billing-accounts/:billingAccountId/consume-amountare still restricted to@Roles(ADMIN_ROLE)(and their Swagger docs list onlyadministrator). Either adjust the README wording to exclude these endpoints, or broaden those endpoints’ role checks/docs to match the documented policy.