Fix cubic review

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-15 15:00:38 +01:00
parent 729551beac
commit 85e453ebcd
9 changed files with 66 additions and 27 deletions

View File

@@ -135,7 +135,7 @@ func (r *mutationResolver) RequestAllAccesses(ctx context.Context, input types.R
return nil, fmt.Errorf("email and name are not allowed for authenticated users")
}
*email = tokenData.Email
email = &tokenData.Email
}
if email == nil {
return nil, fmt.Errorf("email is required for unauthenticated users")