From: Evan Prodromou Date: Wed, 7 Mar 2012 15:12:53 +0000 (-0600) Subject: don't try to force 'real' login for spam training X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5160562567f14644bdb1048a57499270345d12de;p=quix0rs-gnu-social.git don't try to force 'real' login for spam training --- 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)) {