mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
issue 1197 init write, document is not exists. so allow comment status is true
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9998 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aec75bbdf1
commit
245d96fd44
1 changed files with 4 additions and 2 deletions
|
|
@ -98,8 +98,10 @@
|
|||
return $_SESSION['accessible'][$this->document_srl]==true?true:false;
|
||||
}
|
||||
|
||||
function allowComment() {
|
||||
if(!$this->isExists()) return false;
|
||||
function allowComment()
|
||||
{
|
||||
// init write, document is not exists. so allow comment status is true
|
||||
if(!$this->isExists()) return true;
|
||||
|
||||
return $this->get('comment_status') == 'ALLOW' ? true : false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue