Don't require real login to view spam

This commit is contained in:
Evan Prodromou 2012-03-08 07:01:21 -06:00
parent e18d45cf66
commit 5efcfb8598

View File

@ -80,16 +80,6 @@ class SpamAction extends Action
throw new ClientException(_("You must be logged in to review."), 403); throw new ClientException(_("You must be logged in to review."), 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;
}
}
// User must have the right to review spam // User must have the right to review spam
if (!$user->hasRight(ActivitySpamPlugin::REVIEWSPAM)) { if (!$user->hasRight(ActivitySpamPlugin::REVIEWSPAM)) {