don't try to force 'real' login for spam training

This commit is contained in:
Evan Prodromou 2012-03-07 09:12:53 -06:00
parent 55a18f1d17
commit 5160562567

View File

@ -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)) {