issue 464 fixed comment editor error

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9595 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-10-12 02:39:10 +00:00
parent d1c31a6134
commit 7260b45c1a

View file

@ -703,10 +703,10 @@
**/
function isEnableComment() {
// Return false if not authorized, if a secret document, if the document is set not to allow any comment
// old version allowed admin(isGranted() method use), but admin not allow comment below condition
if( $this->isGranted() && $this->allowComment() ) return true;
if (!$this->allowComment()) return false;
if(!$this->isGranted() && $this->isSecret()) return false;
return false;
return true;
}
/**