* Fix project priv bug.

This commit is contained in:
孙广明
2021-12-20 11:23:33 +08:00
parent 84fae4bc7d
commit 2df43b48b8
2 changed files with 1 additions and 8 deletions
-8
View File
@@ -2147,13 +2147,6 @@ EOD;
$inProject = isset($lang->navGroup->$module) && $lang->navGroup->$module == 'project';
if($inProject && $app->session->project && strpos(",{$app->user->rights['projects']},", ",{$app->session->project},") !== false) return true;
/* If module is project and method is execution, check for all execution privilege. */
if($module == 'project' and $method == 'execution')
{
$module = 'execution';
$method = 'all';
}
/* If not super admin, check the rights. */
$rights = $app->user->rights['rights'];
$acls = $app->user->rights['acls'];
@@ -2200,7 +2193,6 @@ EOD;
->where('t1.project')->eq($program->id)
->andWhere('t2.account')->eq($this->app->user->account)
->fetchAll();
if(empty($programRights)) return;
/* Group priv by module the same as rights. */
$programRightGroup = array();