OSDN Git Service

Add check if the signup setting is enabled. fixes #4832
authorPerry Faro <perryfaro@live.nl>
Fri, 27 Sep 2013 09:56:30 +0000 (11:56 +0200)
committerPerry Faro <perryfaro@live.nl>
Fri, 27 Sep 2013 09:56:30 +0000 (11:56 +0200)
app/views/devise/shared/_links.erb
config/gitlab.yml.example

index a47b5ff..db931b8 100644 (file)
@@ -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 -%>
 
index c1cc9f8..9d535b8 100644 (file)
@@ -52,7 +52,8 @@ production: &base
 
 
     ## Users management
-    # signup_enabled: true          # default: false - Account passwords are not sent via the email if signup is enabled.
+    # default: false - Account passwords are not sent via the email if signup is enabled. 
+    # signup_enabled: true
 
     ## Automatic issue closing
     # If a commit message matches this regular express, all issues referenced from the matched text will be closed