Remove unnecessary grant of admin rights on nonexistent documents

This commit is contained in:
Kijin Sung 2017-03-02 21:02:49 +09:00
parent 238d97e4ab
commit 7d508f50bd
5 changed files with 5 additions and 5 deletions

View file

@ -62,7 +62,7 @@ class layoutView extends layout
if($module == 'ARTICLE' && !$mid)
{
$oDocumentModel = getModel('document');
$oDocument = $oDocumentModel->getDocument(0, true);
$oDocument = $oDocumentModel->getDocument(0);
$t = lang('article_preview_title');