mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:29:54 +01:00
remove sign up link on devise views when registrations are disabled
This commit is contained in:
parent
ca98b9dd7f
commit
da0570164a
1 changed files with 1 additions and 1 deletions
|
@ -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/
|
||||
|
||||
|
|
Loading…
Reference in a new issue