Skip to content

Commit

Permalink
[#420] follow-up: also handle the case when current user is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbergja committed Aug 9, 2024
1 parent 752ea59 commit 19dcea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_restricted_message.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if current_user.guest %>
<% if current_user.nil? || current_user.guest %>
<div class="alert alert--warning" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="click to close" role="button">
<span aria-hidden="true">×</span>
Expand Down

0 comments on commit 19dcea6

Please sign in to comment.