summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Folvik <Jonas-folvik@hotmail.com>2016-06-24 13:47:28 +0200
committerJonas Folvik <Jonas-folvik@hotmail.com>2016-06-24 14:45:49 +0200
commitbb1d2c0c3e2ae1444145cf07cee1e2ef933f546c (patch)
tree791af15bce7754b9d666d403d51a16dd5deddb92
parent81d9fabe7bf2d8249402dea99871ea0a8897f746 (diff)
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
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index db46cd8..5dc0e80 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -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