forked from GNUsocial/gnu-social
don't try to force 'real' login for spam training
This commit is contained in:
parent
55a18f1d17
commit
5160562567
10
train.php
10
train.php
@ -71,16 +71,6 @@ class TrainAction extends Action
|
|||||||
throw new ClientException(_("You must be logged in to train spam."), 403);
|
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
|
// User must have the right to review spam
|
||||||
|
|
||||||
if (!$user->hasRight(ActivitySpamPlugin::TRAINSPAM)) {
|
if (!$user->hasRight(ActivitySpamPlugin::TRAINSPAM)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user