diff --git a/module/execution/control.php b/module/execution/control.php index 350af38bb9..346e447209 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3763,7 +3763,7 @@ class execution extends control $this->execution->setMenu($executionID); $execution = $this->execution->getByID($executionID); - if(!empty($execution->acl) and $execution->acl != 'private') $this->locate($this->createLink('execution', 'task', "executionID=$executionID")); + if(!empty($execution->acl) and $execution->acl != 'private') return $this->sendError($this->lang->whitelistNotNeed, $this->createLink('execution', 'task', "executionID=$executionID")); echo $this->fetch('personnel', 'whitelist', "objectID=$executionID&module=$module&browseType=$objectType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID"); } diff --git a/module/project/control.php b/module/project/control.php index 8dc38c2cc2..c6ee0fdca5 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1397,7 +1397,7 @@ class project extends control { $projectID = $this->project->setMenu($projectID); $project = $this->project->getByID($projectID); - if(isset($project->acl) and $project->acl == 'open') $this->locate($this->createLink('project', 'index', "projectID=$projectID")); + if(isset($project->acl) and $project->acl == 'open') return $this->sendError($this->lang->whitelistNotNeed, $this->createLink('project', 'index', "projectID=$projectID")); echo $this->fetch('personnel', 'whitelist', "objectID=$projectID&module=project&browseType=project&orderBy=id_desc&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&projectID=$projectID&from=$from"); } @@ -1419,7 +1419,7 @@ class project extends control { $projectID = $this->project->setMenu($projectID); $project = $this->project->getByID($projectID); - if(isset($project->acl) and $project->acl == 'open') $this->locate($this->createLink('project', 'index', "projectID=$projectID")); + if(isset($project->acl) and $project->acl == 'open') return $this->sendError($this->lang->whitelistNotNeed, $this->createLink('project', 'index', "projectID=$projectID")); echo $this->fetch('personnel', 'addWhitelist', "objectID=$projectID&dept=$deptID©ID=$copyID&objectType=project&module=project&programID=$programID&from=$from"); }