mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Checks if User has activated his Email before saving a open creation.
This commit is contained in:
parent
d938814f1a
commit
a12378ed8b
@ -60,8 +60,8 @@ export class AdminResolver {
|
||||
): Promise<number[]> {
|
||||
const userRepository = getCustomRepository(UserRepository)
|
||||
const user = await userRepository.findByEmail(email)
|
||||
|
||||
if (!user.disabled) {
|
||||
const isActivated = await hasActivatedEmail(user.email)
|
||||
if (isActivated) {
|
||||
const creations = await getUserCreations(user.id)
|
||||
const creationDateObj = new Date(creationDate)
|
||||
if (isCreationValid(creations, amount, creationDateObj)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user