mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
이슈트래커 모듈의 권한에 따른 메뉴 보여주기 기능 추가 및 패키지가 등록안되었을 경우 패키지 입력하지 않아도 되도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5090 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7f71e0b03f
commit
91f8519086
7 changed files with 39 additions and 15 deletions
|
|
@ -7,12 +7,6 @@
|
|||
<title xml:lang="zh-TW">專案</title>
|
||||
<title xml:lang="jp">プロジェクトへアクセス</title>
|
||||
</grant>
|
||||
<grant name="browser_source" default="guest">
|
||||
<title xml:lang="ko">소스 열람</title>
|
||||
<title xml:lang="zh-CN">查看代码</title>
|
||||
<title xml:lang="zh-TW">檢視原始碼</title>
|
||||
<title xml:lang="jp">ソース閲覧</title>
|
||||
</grant>
|
||||
<grant name="ticket_view" default="guest">
|
||||
<title xml:lang="ko">티켓 열람</title>
|
||||
<title xml:lang="zh-CN">查看计划</title>
|
||||
|
|
@ -25,6 +19,18 @@
|
|||
<title xml:lang="zh-TW">建立專案</title>
|
||||
<title xml:lang="jp">チケット発行</title>
|
||||
</grant>
|
||||
<grant name="timeline" default="guest">
|
||||
<title xml:lang="ko">타임라인</title>
|
||||
<title xml:lang="zh-CN">Timeline</title>
|
||||
<title xml:lang="zh-TW">Timeline</title>
|
||||
<title xml:lang="jp">Timeline</title>
|
||||
</grant>
|
||||
<grant name="browser_source" default="guest">
|
||||
<title xml:lang="ko">소스 열람</title>
|
||||
<title xml:lang="zh-CN">查看代码</title>
|
||||
<title xml:lang="zh-TW">檢視原始碼</title>
|
||||
<title xml:lang="jp">ソース閲覧</title>
|
||||
</grant>
|
||||
<grant name="commiter" default="member">
|
||||
<title xml:lang="ko">개발자</title>
|
||||
<title xml:lang="zh-CN">开发者</title>
|
||||
|
|
|
|||
|
|
@ -37,6 +37,16 @@
|
|||
$this->setTemplatePath($template_path);
|
||||
|
||||
// 권한에 따른 메뉴 제한
|
||||
if(!$this->grant->access) {
|
||||
$this->grant->ticket_view = $this->grant->ticket_write = $this->grant->timeline = $this->grant->browser_source = $this->grant->download = 0;
|
||||
unset($GLOBALS['lang']->project_menus);
|
||||
} else {
|
||||
if(!$this->grant->ticket_view) unset($GLOBALS['lang']->project_menus['dispIssuetrackerViewIssue']);
|
||||
if(!$this->grant->ticket_write) unset($GLOBALS['lang']->project_menus['dispIssuetrackerNewIssue']);
|
||||
if(!$this->grant->timeline) unset($GLOBALS['lang']->project_menus['dispIssuetrackerTimeline']);
|
||||
if(!$this->grant->browser_source) unset($GLOBALS['lang']->project_menus['dispIssuetrackerViewSource']);
|
||||
if(!$this->grant->download) unset($GLOBALS['lang']->project_menus['dispIssuetrackerDownload']);
|
||||
}
|
||||
if(!$this->grant->manager) unset($GLOBALS['lang']->project_menus['dispIssuetrackerAdminProjectSetting']);
|
||||
|
||||
// 템플릿에서 사용할 검색옵션 세팅 (검색옵션 key값은 미리 선언되어 있는데 이에 대한 언어별 변경을 함)
|
||||
|
|
@ -68,7 +78,7 @@
|
|||
}
|
||||
|
||||
function dispIssuetrackerTimeline() {
|
||||
if(!$this->grant->access) return $this->dispIssuetrackerMessage('msg_not_permitted');
|
||||
if(!$this->grant->timeline) return $this->dispIssuetrackerMessage('msg_not_permitted');
|
||||
$oController = &getController('issuetracker');
|
||||
$oController->syncChangeset($this->module_info);
|
||||
$oModel = &getModel('issuetracker');
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<node target="type_srl" required="true" />
|
||||
<node target="component_srl" required="true" />
|
||||
<node target="package_srl" required="true" />
|
||||
<node target="occured_version_srl" />
|
||||
<node target="occured_version_srl" required="true"/>
|
||||
<node target="nick_name" required="true" />
|
||||
<node target="password" required="true" />
|
||||
<node target="email_address" maxlength="250" />
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<node target="priority_srl" />
|
||||
<node target="type_srl" required="true" />
|
||||
<node target="component_srl" required="true" />
|
||||
<node target="package_srl" />
|
||||
<node target="package_srl" required="true"/>
|
||||
<node target="occured_version_srl" required="true" />
|
||||
<node target="action" />
|
||||
<node target="status" />
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
<!--@end-->
|
||||
|
||||
|
||||
<!--@if($lang->project_menus)-->
|
||||
<div class="issueNav">
|
||||
<ul class="issueNav">
|
||||
|
||||
|
|
@ -31,3 +32,4 @@
|
|||
</ul>
|
||||
<div class="bottomLine"></div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@
|
|||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@if(count($project->packages))-->
|
||||
<tr>
|
||||
<th><label for="inputPackage">{$lang->occured_version} :</label></th>
|
||||
<td colspan="3">
|
||||
|
|
@ -109,6 +110,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($module_info->extra_vars)--><!--@foreach($module_info->extra_vars as $key => $val)-->
|
||||
<!--@if($val->name)-->
|
||||
|
|
|
|||
|
|
@ -22,12 +22,6 @@
|
|||
<th>{$lang->component} :</th>
|
||||
<td>{$oIssue->getComponentTitle()}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->package} :</th>
|
||||
<td>{$oIssue->getPackageTitle()}</td>
|
||||
<th>{$lang->occured_version} :</th>
|
||||
<td>{$oIssue->getReleaseTitle()}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->status} :</th>
|
||||
<td>{$oIssue->getStatus()}</td>
|
||||
|
|
@ -40,6 +34,14 @@
|
|||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
<!--@if(count($project->packages))-->
|
||||
<tr>
|
||||
<th>{$lang->package} :</th>
|
||||
<td>{$oIssue->getPackageTitle()}</td>
|
||||
<th>{$lang->occured_version} :</th>
|
||||
<td>{$oIssue->getReleaseTitle()}</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($module_info->extra_vars)--><!--@foreach($module_info->extra_vars as $key => $val)-->
|
||||
<!--@if($val->name)-->
|
||||
|
|
@ -195,6 +197,7 @@
|
|||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@if(count($project->packages))-->
|
||||
<tr>
|
||||
<th><label for="inputPackage">{$lang->occured_version} :</label></th>
|
||||
<td colspan="3">
|
||||
|
|
@ -216,6 +219,7 @@
|
|||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<tr>
|
||||
<th><label>{$lang->action} :</label></th>
|
||||
<td colspan="3">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue