issue 24 if lock comment, comment permission not allowed for admin

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8445 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-06-03 05:42:04 +00:00
parent bd21901d55
commit 987c49b8c9
3 changed files with 4 additions and 3 deletions

View file

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

View file

@ -234,4 +234,4 @@
$this->setTemplateFile('delete_members');
}
}
?>
?>

View file

@ -698,4 +698,4 @@
}
}
?>
?>