mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +09:00
#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:
parent
1c35bae440
commit
4253fec499
2 changed files with 7 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue