Bug(バグ) #696 » 696.diff
lib/model/doctrine/PluginDeletedMessageTable.class.php (作業コピー) | ||
---|---|---|
*/
|
||
public function restoreMessage($message_id)
|
||
{
|
||
$deleted_message = $this->find($message_id);
|
||
$deleted_message = $this->findOneByIdAndMemberId($message_id, sfContext::getInstance()->getUser()->getMemberId());
|
||
if (!$deleted_message) {
|
||
return false;
|
||
}
|
lib/action/opMessagePluginMessageActions.class.php (作業コピー) | ||
---|---|---|
{
|
||
$request->checkCSRFProtection();
|
||
Doctrine::getTable('DeletedMessage')->restoreMessage($request->getParameter('id'));
|
||
$this->forward404Unless(Doctrine::getTable('DeletedMessage')->restoreMessage($request->getParameter('id')));
|
||
$this->redirect('@dustList');
|
||
}
|
||
|