mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Replace $oDocument with empty DocumentItem if access is not allowed
This commit is contained in:
parent
4fe87edd1d
commit
8b8dc99431
2 changed files with 27 additions and 10 deletions
|
|
@ -318,6 +318,7 @@ class BoardView extends Board
|
|||
{
|
||||
if (abs($oDocument->get('member_srl')) != $this->user->member_srl)
|
||||
{
|
||||
$oDocument = DocumentModel::getDocument(0);
|
||||
Context::set('document_srl', null, true);
|
||||
$this->dispBoardMessage('msg_not_founded', 404);
|
||||
}
|
||||
|
|
@ -326,6 +327,7 @@ class BoardView extends Board
|
|||
// if the document is TEMP saved, pretend that it doesn't exist.
|
||||
if($oDocument->getStatus() == 'TEMP')
|
||||
{
|
||||
$oDocument = DocumentModel::getDocument(0);
|
||||
Context::set('document_srl', null, true);
|
||||
$this->dispBoardMessage('msg_not_founded', 404);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue