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

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

@ -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');