mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-17 13:44:47 +00:00
FIX: sending access token to role function to evaluate editing permissions
This commit is contained in:
@@ -121,6 +121,7 @@ export class AuthenticationGuard
|
||||
customer_id: accessTokenPayload.customer_id,
|
||||
customer_name: accessTokenPayload.customer_name,
|
||||
customer_tier: accessTokenPayload.customer_tier,
|
||||
access_token: accessToken,
|
||||
};
|
||||
// TODO: for backwards compatibility. remove in the future
|
||||
request.body.info = {
|
||||
|
||||
@@ -10,6 +10,7 @@ export interface RequestUser {
|
||||
customer_id: string;
|
||||
customer_name: string;
|
||||
customer_tier: string;
|
||||
access_token: string;
|
||||
}
|
||||
|
||||
export const User: (options?: { required?: boolean }) => ParameterDecorator =
|
||||
|
||||
Reference in New Issue
Block a user