Skip to content

Commit

Permalink
fix #1616 削除した(ゴミ箱に入れた)メールフォームの設定画面や受信一覧が閲覧できる (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
morishita1222 committed Jan 10, 2021
1 parent 2450609 commit 4df309e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Baser/Plugin/Mail/Controller/MailMessagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class MailMessagesController extends MailAppController {
*/
public function beforeFilter() {
parent::beforeFilter();
$content = $this->BcContents->getContent($this->request->params['pass'][0]);
if(!$content) {
$this->notFound();
}
$this->mailContent = $this->MailContent->read(null, $this->params['pass'][0]);
App::uses('MailMessage', 'Mail.Model');
$this->MailMessage = new MailMessage();
Expand Down

0 comments on commit 4df309e

Please sign in to comment.