* Code for program project product priv.
This commit is contained in:
@@ -43,7 +43,8 @@ $lang->program->privway = '权限控制';
|
||||
|
||||
$lang->program->manageGroupMember = '维护分组用户';
|
||||
$lang->program->durationEstimation = '工作量估算';
|
||||
$lang->program->noProgram = '暂时没有项目';
|
||||
$lang->program->noProgram = '暂时没有项目';
|
||||
$lang->program->accessDenied = '您无权访问该项目!';
|
||||
|
||||
$lang->program->unitList[''] = '';
|
||||
$lang->program->unitList['yuan'] = '元';
|
||||
|
||||
@@ -40,6 +40,24 @@ class programModel extends model
|
||||
->fetchPairs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Show accessDenied response.
|
||||
*
|
||||
* @access private
|
||||
* @return void
|
||||
*/
|
||||
public function accessDenied()
|
||||
{
|
||||
echo(js::alert($this->lang->program->accessDenied));
|
||||
|
||||
if(!$this->server->http_referer) die(js::locate(helper::createLink('program', 'index')));
|
||||
|
||||
$loginLink = $this->config->requestType == 'GET' ? "?{$this->config->moduleVar}=user&{$this->config->methodVar}=login" : "user{$this->config->requestFix}login";
|
||||
if(strpos($this->server->http_referer, $loginLink) !== false) die(js::locate(helper::createLink('program', 'index')));
|
||||
|
||||
die(js::locate('back'));
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
$this->lang->project->team = $this->lang->project->teamname;
|
||||
|
||||
Reference in New Issue
Block a user