Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Show login button on error page if user is not logged in

Dan Ungureanubd3c0dd59f90
diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erb
index 873a79cc3b9..6975dbfe725 100644
--- a/app/views/exceptions/not_found.html.erb
+++ b/app/views/exceptions/not_found.html.erb
@@ -1,7 +1,7 @@
<div class="page-not-found">
<h1 class="title"><%= @title %></h1>
- <%- if (@group&.allow_membership_requests || @group&.public_admission) && !current_user %>
+ <%- if !current_user %>
<a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>
<%- end %>