Skip to content
Snippets Groups Projects
Unverified Commit 76195eee authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

no current_language in extranet_access context

parent 4c133ef6
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ module User::WithRegistrationContext
def extranet_access
unless user_can_access_registration_context?
extranet_l10n = registration_context.localization_for(current_language)
extranet_l10n = registration_context.original_localization
if extranet_l10n.registration_contact.present?
errors.add :email, I18n.t('extranet.errors.email_not_allowed_with_contact', contact: extranet_l10n.registration_contact)
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment