Skip to content

Commit d29b3fb

Browse files
committed
Hide register link on login form if blocked
1 parent 940d145 commit d29b3fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/views/devise/shared/_links.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<%= link_to t('devise.links.log_in'), new_session_path(resource_name) %></li>
55
<% end -%>
66

7-
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
7+
<%- if devise_mapping.registerable? && controller_name != 'registrations' &&
8+
TeSS::Config.feature['registration'] && !from_blocked_country? %>
89
<li><%= t('devise.links.new_to', title: TeSS::Config.site['title_short']) %>
910
<%= link_to t('devise.links.register'), new_registration_path(resource_name) %></li>
1011
<% end -%>

0 commit comments

Comments
 (0)