From bb1d2c0c3e2ae1444145cf07cee1e2ef933f546c Mon Sep 17 00:00:00 2001 From: Jonas Folvik Date: Fri, 24 Jun 2016 13:47:28 +0200 Subject: [PATCH] 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 --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2