#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();
}
}
?>

View file

@ -9,7 +9,7 @@
<th colspan="3" class="title"><a href="{getUrl('','document_srl',$oIssue->document_srl)}">{$oIssue->getTitle()}</a><span>- {$oIssue->getStatus()}</span></th>
<td><SPAn class="member_{$oIssue->getMemberSrl()}">{$oIssue->getNickName()}</span></td>
</tr>
<!--@if(!$oIssue->isSecret() || $oIssue->isGranted())-->
<!--@if(!$oIssue->isSecret() || $oIssue->isAccessible())-->
<tr>
<th>{$lang->milestone} :</th>
<td>{$oIssue->getMilestoneTitle()}</td>