From 407595c12bf9a2d73acee09ef29db034f28ae20b Mon Sep 17 00:00:00 2001 From: Yuki Date: Thu, 23 Apr 2015 06:31:48 +0530 Subject: [PATCH] Missing return statement --- app/controllers/ajax/moderation_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/ajax/moderation_controller.rb b/app/controllers/ajax/moderation_controller.rb index b6b5cb01..9d149ead 100644 --- a/app/controllers/ajax/moderation_controller.rb +++ b/app/controllers/ajax/moderation_controller.rb @@ -125,6 +125,7 @@ class Ajax::ModerationController < ApplicationController @status = :nopriv @message = "You cannot ban an administrator!" @success = false + return end if unban