mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 15:49:57 +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() {
|
function isClosed() {
|
||||||
return in_array($this->status, $this->closed_status);
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
<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>
|
<td><SPAn class="member_{$oIssue->getMemberSrl()}">{$oIssue->getNickName()}</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!--@if(!$oIssue->isSecret() || $oIssue->isGranted())-->
|
<!--@if(!$oIssue->isSecret() || $oIssue->isAccessible())-->
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->milestone} :</th>
|
<th>{$lang->milestone} :</th>
|
||||||
<td>{$oIssue->getMilestoneTitle()}</td>
|
<td>{$oIssue->getMilestoneTitle()}</td>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue