summaryrefslogtreecommitdiff
path: root/app/views/users/show.html.erb
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2016-06-21 23:41:04 +0200
committerjomo <github@jomo.tv>2016-06-21 23:41:04 +0200
commit81d9fabe7bf2d8249402dea99871ea0a8897f746 (patch)
tree21baf6d753ab93fe6be2f77290dea75934955b28 /app/views/users/show.html.erb
parente0ac5fac131342874c4e9f814a5943f38a39fa91 (diff)
allow mods to resend confirmation emails for other users
Diffstat (limited to 'app/views/users/show.html.erb')
-rw-r--r--app/views/users/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 0a5431c..e371a09 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -21,7 +21,7 @@
<% end %>
<% if !@user.confirmed? %>
- <% if @user.is?(current_user) %>
+ <% if @user.is?(current_user) || mod? %>
<span class="user-unconfirmed">Please confirm your email <u><%= @user.email %></u> !</span>
<%= button_to "Resend the confirmation mail", resend_mail_user_path, class: "btn dark", form_class: "inline-block", data: {confirm: "Did you check your spam folder?"} %>
<% else %>