mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
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:
parent
bd21901d55
commit
987c49b8c9
3 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,4 +234,4 @@
|
|||
$this->setTemplateFile('delete_members');
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -698,4 +698,4 @@
|
|||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue