mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 01:55:10 +02:00
small fixes to invite user workflow
This commit is contained in:
parent
ba3505a385
commit
8e64b5e0e9
4 changed files with 6 additions and 5 deletions
|
@ -89,7 +89,7 @@ export async function acceptInvite(
|
|||
);
|
||||
}
|
||||
|
||||
if (existingUser[0].email !== existingInvite[0].email) {
|
||||
if (req.user && req.user.email !== existingInvite[0].email) {
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.BAD_REQUEST,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue