Show verification info only if verification is enabled

This commit is contained in:
decabeza
2022-07-21 20:37:28 +02:00
committed by Javi Martín
parent 3f664e4ccd
commit d59d02ba83
2 changed files with 43 additions and 27 deletions

View File

@@ -6,6 +6,6 @@ class Account::VerifyAccountComponent < ApplicationComponent
end
def render?
!account.organization?
Setting["feature.user.skip_verification"].blank? && !account.organization?
end
end