이슈트래커 모듈의 권한에 따른 메뉴 보여주기 기능 추가 및 패키지가 등록안되었을 경우 패키지 입력하지 않아도 되도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5090 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-12-16 05:51:02 +00:00
parent 7f71e0b03f
commit 91f8519086
7 changed files with 39 additions and 15 deletions

View file

@ -7,12 +7,6 @@
<title xml:lang="zh-TW">專案</title> <title xml:lang="zh-TW">專案</title>
<title xml:lang="jp">プロジェクトへアクセス</title> <title xml:lang="jp">プロジェクトへアクセス</title>
</grant> </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"> <grant name="ticket_view" default="guest">
<title xml:lang="ko">티켓 열람</title> <title xml:lang="ko">티켓 열람</title>
<title xml:lang="zh-CN">查看计划</title> <title xml:lang="zh-CN">查看计划</title>
@ -25,6 +19,18 @@
<title xml:lang="zh-TW">建立專案</title> <title xml:lang="zh-TW">建立專案</title>
<title xml:lang="jp">チケット発行</title> <title xml:lang="jp">チケット発行</title>
</grant> </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"> <grant name="commiter" default="member">
<title xml:lang="ko">개발자</title> <title xml:lang="ko">개발자</title>
<title xml:lang="zh-CN">开发者</title> <title xml:lang="zh-CN">开发者</title>

View file

@ -37,6 +37,16 @@
$this->setTemplatePath($template_path); $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']); if(!$this->grant->manager) unset($GLOBALS['lang']->project_menus['dispIssuetrackerAdminProjectSetting']);
// 템플릿에서 사용할 검색옵션 세팅 (검색옵션 key값은 미리 선언되어 있는데 이에 대한 언어별 변경을 함) // 템플릿에서 사용할 검색옵션 세팅 (검색옵션 key값은 미리 선언되어 있는데 이에 대한 언어별 변경을 함)
@ -68,7 +78,7 @@
} }
function dispIssuetrackerTimeline() { 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 = &getController('issuetracker');
$oController->syncChangeset($this->module_info); $oController->syncChangeset($this->module_info);
$oModel = &getModel('issuetracker'); $oModel = &getModel('issuetracker');

View file

@ -4,7 +4,7 @@
<node target="type_srl" required="true" /> <node target="type_srl" required="true" />
<node target="component_srl" required="true" /> <node target="component_srl" required="true" />
<node target="package_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="nick_name" required="true" />
<node target="password" required="true" /> <node target="password" required="true" />
<node target="email_address" maxlength="250" /> <node target="email_address" maxlength="250" />

View file

@ -4,7 +4,7 @@
<node target="priority_srl" /> <node target="priority_srl" />
<node target="type_srl" required="true" /> <node target="type_srl" required="true" />
<node target="component_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="occured_version_srl" required="true" />
<node target="action" /> <node target="action" />
<node target="status" /> <node target="status" />

View file

@ -21,6 +21,7 @@
<!--@end--> <!--@end-->
<!--@if($lang->project_menus)-->
<div class="issueNav"> <div class="issueNav">
<ul class="issueNav"> <ul class="issueNav">
@ -31,3 +32,4 @@
</ul> </ul>
<div class="bottomLine"></div> <div class="bottomLine"></div>
</div> </div>
<!--@end-->

View file

@ -87,6 +87,7 @@
</select> </select>
</td> </td>
</tr> </tr>
<!--@if(count($project->packages))-->
<tr> <tr>
<th><label for="inputPackage">{$lang->occured_version} :</label></th> <th><label for="inputPackage">{$lang->occured_version} :</label></th>
<td colspan="3"> <td colspan="3">
@ -109,6 +110,7 @@
</td> </td>
</tr> </tr>
<!--@end--> <!--@end-->
<!--@end-->
<!--@if($module_info->extra_vars)--><!--@foreach($module_info->extra_vars as $key => $val)--> <!--@if($module_info->extra_vars)--><!--@foreach($module_info->extra_vars as $key => $val)-->
<!--@if($val->name)--> <!--@if($val->name)-->

View file

@ -22,12 +22,6 @@
<th>{$lang->component} :</th> <th>{$lang->component} :</th>
<td>{$oIssue->getComponentTitle()}</td> <td>{$oIssue->getComponentTitle()}</td>
</tr> </tr>
<tr>
<th>{$lang->package} :</th>
<td>{$oIssue->getPackageTitle()}</td>
<th>{$lang->occured_version} :</th>
<td>{$oIssue->getReleaseTitle()}</td>
</tr>
<tr> <tr>
<th>{$lang->status} :</th> <th>{$lang->status} :</th>
<td>{$oIssue->getStatus()}</td> <td>{$oIssue->getStatus()}</td>
@ -40,6 +34,14 @@
<!--@end--> <!--@end-->
</td> </td>
</tr> </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($module_info->extra_vars)--><!--@foreach($module_info->extra_vars as $key => $val)-->
<!--@if($val->name)--> <!--@if($val->name)-->
@ -195,6 +197,7 @@
</select> </select>
</td> </td>
</tr> </tr>
<!--@if(count($project->packages))-->
<tr> <tr>
<th><label for="inputPackage">{$lang->occured_version} :</label></th> <th><label for="inputPackage">{$lang->occured_version} :</label></th>
<td colspan="3"> <td colspan="3">
@ -216,6 +219,7 @@
</select> </select>
</td> </td>
</tr> </tr>
<!--@end-->
<tr> <tr>
<th><label>{$lang->action} :</label></th> <th><label>{$lang->action} :</label></th>
<td colspan="3"> <td colspan="3">