diff options
author | Perry Faro <perryfaro@live.nl> | 2013-09-27 11:56:30 +0200 |
---|---|---|
committer | Perry Faro <perryfaro@live.nl> | 2013-09-27 11:56:30 +0200 |
commit | 96ae1a809958450912980407ae2175f2f86f9c55 (patch) | |
tree | b640e615267f792c997e54c0c40bc43b135539b8 /app | |
parent | 052a7cc9cdc0fb14a55e7a7d71a8e4696c909658 (diff) | |
download | gitlab-ce-96ae1a809958450912980407ae2175f2f86f9c55.tar.gz |
Add check if the signup setting is enabled. fixes #4832
Diffstat (limited to 'app')
-rw-r--r-- | app/views/devise/shared/_links.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/devise/shared/_links.erb b/app/views/devise/shared/_links.erb index a47b5ff1ec7..db931b86288 100644 --- a/app/views/devise/shared/_links.erb +++ b/app/views/devise/shared/_links.erb @@ -2,7 +2,7 @@ <%= link_to "Sign in", new_session_path(resource_name), class: "btn" %><br /> <% end -%> -<%- if devise_mapping.registerable? && controller_name != 'registrations' %> +<%- if devise_mapping.registerable? && controller_name != 'registrations' && Gitlab.config.gitlab.signup_enabled %> <%= link_to "Sign up", new_registration_path(resource_name) %><br /> <% end -%> |