allow mods to resend confirmation emails for other users

This commit is contained in:
jomo
2016-06-21 23:41:04 +02:00
parent e0ac5fac13
commit 81d9fabe7b
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ class UsersController < ApplicationController
end
def resend_mail
if @user.is?(current_user) && !confirmed?
if (@user.is?(current_user) || mod) && !confirmed?
RedstonerMailer.register_mail(@user, false).deliver_now
flash[:notice] = "Check your inbox for the confirmation mail."
else