Set email validation grandfathering for May 16th. All new sites will need to validate email.

This commit is contained in:
Kyle Drake 2016-05-14 23:15:13 -04:00
parent a2a6a40438
commit f97ebd9781
4 changed files with 6 additions and 4 deletions

View file

@ -125,5 +125,7 @@ def dont_browser_cache
end
def email_not_validated?
current_site && current_site.parent? && !current_site.is_education && !current_site.email_confirmed && !current_site.supporter? && Site::EMAIL_VALIDATION_CUTOFF_DATE < Time.now
return false if current_site && current_site.created_at < Site::EMAIL_VALIDATION_CUTOFF_DATE
current_site && current_site.parent? && !current_site.is_education && !current_site.email_confirmed && !current_site.supporter?
end