]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't try to force 'real' login for spam training
authorEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 15:12:53 +0000 (09:12 -0600)
committerEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 15:12:53 +0000 (09:12 -0600)
train.php

index 46579935bc1c66d4bbbe044f417cb62cfc9e243d..9b6a6a746dcb417c0aacd8c5f70cc88f84cbf170 100644 (file)
--- 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)) {