public function restore()
{
if (!Gdn::request()->isAuthenticatedPostBack(true)) {
throw new Exception('Requires POST', 405);
}
$this->permission(array('Garden.Moderation.Manage', 'Moderation.Spam.Manage', 'Moderation.ModerationQueue.Manage'), false);
$LogIDs = Gdn::request()->post('LogIDs');
// Grab the logs.
$Logs = $this->LogModel->getIDs($LogIDs);
try {
foreach ($Logs as $Log) {
$this->LogModel->restore($Log);
}
} catch (Exception $Ex) {
$this->Form->addError($Ex->getMessage());
}
$this->LogModel->recalculate();
$this->render('Blank', 'Utility');
}