1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Always be able to set email as verified

Useful for instance that do not require email verification but still
want to enable the "email in podcast feed" feature
This commit is contained in:
Chocobozzz 2024-03-08 14:02:14 +01:00
parent 3a53d44246
commit b080ccc3ee
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 20 additions and 27 deletions

View file

@ -366,7 +366,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
{
label: $localize`Set Email as Verified`,
handler: ({ user }) => this.setEmailAsVerified(user),
isDisplayed: ({ user }) => this.requiresEmailVerification && !user.blocked && user.emailVerified === false
isDisplayed: ({ user }) => !user.blocked && user.emailVerified !== true
}
])
}