From 5160562567f14644bdb1048a57499270345d12de Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 7 Mar 2012 09:12:53 -0600 Subject: [PATCH] don't try to force 'real' login for spam training --- train.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/train.php b/train.php index 46579935bc..9b6a6a746d 100644 --- a/train.php +++ b/train.php @@ -71,16 +71,6 @@ class TrainAction extends Action throw new ClientException(_("You must be logged in to train spam."), 403); } - // It must be a "real" login, not saved cookie login - - if (!common_is_real_login()) { - common_set_returnto($this->selfUrl()); - if (Event::handle('RedirectToLogin', array($this, $user))) { - common_redirect(common_local_url('login'), 303); - return false; - } - } - // User must have the right to review spam if (!$user->hasRight(ActivitySpamPlugin::TRAINSPAM)) { -- 2.39.5