#17284814 : allow commiters to view secret articles

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6259 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-05-04 05:08:58 +00:00
parent 1c35bae440
commit 4253fec499
2 changed files with 7 additions and 1 deletions

View file

@ -144,5 +144,11 @@
function isClosed() {
return in_array($this->status, $this->closed_status);
}
function isAccessible() {
$grant = Context::get('grant');
if($grant->commiter) return true;
else return parent::isAccessible() || $this->isGranted();
}
}
?>