From 0db75a019b92bb33c06bf153c69a2c7d853918f5 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Fri, 6 Sep 2024 11:37:25 -0400 Subject: [PATCH] Revert "Do not show registation link when REQUIRE_INVITE_CODE=true (#1148)" (#1155) This reverts commit 9172eb931bdbab7e7f3ce2f69d4cb0e32649cb30. --- app/helpers/application_helper.rb | 4 ---- app/views/layouts/auth.html.erb | 8 +++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abccf57d..b834f54b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -154,8 +154,4 @@ module ApplicationHelper .map { |_currency, money| format_money(money) } .join(separator) end - - def invite_code_required? - ENV["REQUIRE_INVITE_CODE"] == "true" - end end diff --git a/app/views/layouts/auth.html.erb b/app/views/layouts/auth.html.erb index 8c492be1..05c81e68 100644 --- a/app/views/layouts/auth.html.erb +++ b/app/views/layouts/auth.html.erb @@ -8,11 +8,9 @@ <% if controller_name == "sessions" %> - <% unless invite_code_required? %> -

- <%= t(".or") %> <%= link_to t(".sign_up"), new_registration_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %> -

- <% end %> +

+ <%= t(".or") %> <%= link_to t(".sign_up"), new_registration_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %> +

<% elsif controller_name == "registrations" %>

<%= t(".or") %> <%= link_to t(".sign_in"), new_session_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %>