Merge branch 'sprint/master_tanghucheng_fixbug' into 'master'

* Fix priv and classic mode.

See merge request easycorp/zentaopms!2031
This commit is contained in:
孙广明
2022-03-02 03:05:06 +00:00
6 changed files with 44 additions and 33 deletions
+3
View File
@@ -2683,6 +2683,9 @@ class userModel extends model
public function getVisionList()
{
$visionList = $this->lang->visionList;
if($this->config->systemMode != 'new') unset($visionList['lite']);
foreach($visionList as $visionKey => $visionName)
{
if(strpos($this->config->visions, ",{$visionKey},") === false) unset($visionList[$visionKey]);