Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Bug fix: check if user is logged in before running any checks
Browse files Browse the repository at this point in the history
  • Loading branch information
constantine-nikolaou committed Mar 28, 2020
1 parent 95a7206 commit 84b1432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/directory/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
<br/>
<% end %>
<% if current_user.admin? %>
<% if user_signed_in? && current_user.admin? %>

<div class="alert alert-info" role="alert">
<h4>Details for Admins</h4>
Expand Down

0 comments on commit 84b1432

Please sign in to comment.