remove sign up link on devise views when registrations are disabled

This commit is contained in:
Jyrki Gadinger 2024-08-09 11:13:54 +02:00 committed by Andreas Nedbal
parent ca98b9dd7f
commit da0570164a
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
= link_to 'Sign in', new_session_path(resource_name)
%br/
- if devise_mapping.registerable? && controller_name != 'registrations'
- if devise_mapping.registerable? && controller_name != 'registrations' && Retrospring::Config.registrations_enabled?
= link_to 'Sign up', new_registration_path(resource_name)
%br/