resend mail bug fix

We can now send the mail when you are mod and you also don't need to be
unconfirmed yourself.

a better fix

this is just a better fix to my last commit
This commit was merged in pull request #9.
This commit is contained in:
Jonas Folvik
2016-06-24 13:47:28 +02:00
parent 81d9fabe7b
commit bb1d2c0c3e

View File

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