* finish task #39793.

This commit is contained in:
wangyidong
2021-07-05 11:45:02 +08:00
parent 790dcefa53
commit 2d47b0e755
5 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -1736,7 +1736,8 @@ EOD;
if(!defined('IN_UPGRADE') and $inProject)
{
/* Check program priv. */
if($this->session->project and strpos(",{$this->app->user->view->projects},", ",{$this->session->project},") === false and !$this->app->user->admin) $this->loadModel('project')->accessDenied();
$viewProjects = trim($this->app->user->view->projects, ',');
if($this->session->project and $viewProjects and strpos(",{$viewProjects},", ",{$this->session->project},") === false and !$this->app->user->admin) $this->loadModel('project')->accessDenied();
$this->resetProgramPriv($module, $method);
if(!commonModel::hasPriv($module, $method)) $this->deny($module, $method, false);
}
-2
View File
@@ -189,8 +189,6 @@ $lang->project->endList[365] = 'One year';
$lang->project->endList[999] = 'Longtime';
$lang->project->empty = 'No project.';
$lang->project->accessDenied = 'Access denied!';
$lang->project->chooseProgramType = 'Select the project management model';
$lang->project->nextStep = 'Next step';
$lang->project->hoursUnit = '%s hours';
$lang->project->membersUnit = '%s men';
-2
View File
@@ -189,8 +189,6 @@ $lang->project->endList[365] = '一年';
$lang->project->endList[999] = '长期';
$lang->project->empty = '暂时没有项目';
$lang->project->accessDenied = '您无权访问该项目!';
$lang->project->chooseProgramType = '选中项目管理模型';
$lang->project->nextStep = '下一步';
$lang->project->hoursUnit = '%s 工时';
$lang->project->membersUnit = '%s人';
@@ -0,0 +1,2 @@
<?php
$lang->user->tokenInvalid = "Token denied, please login with password.";
@@ -0,0 +1,2 @@
<?php
$lang->user->tokenInvalid = "Token 认证失败,请尝试使用密码登录。";