fix: fixed issue with team-invitations and new user accounts (#3137)
This commit is contained in:
parent
6f35574d68
commit
6304fd50c3
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ export class TeamInviteViewerGuard implements CanActivate {
|
|||
// Get user
|
||||
TE.bindW('user', ({ gqlCtx }) =>
|
||||
pipe(
|
||||
O.fromNullable(gqlCtx.getContext<{ user?: User }>().user),
|
||||
O.fromNullable(gqlCtx.getContext().req.user),
|
||||
TE.fromOption(() => BUG_AUTH_NO_USER_CTX),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export class TeamInviteeGuard implements CanActivate {
|
|||
// Get user
|
||||
TE.bindW('user', ({ gqlCtx }) =>
|
||||
pipe(
|
||||
O.fromNullable(gqlCtx.getContext<{ user?: User }>().user),
|
||||
O.fromNullable(gqlCtx.getContext().req.user),
|
||||
TE.fromOption(() => BUG_AUTH_NO_USER_CTX),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue