Merge branch 'sprint/master_tanghucheng_fixbug' into 'master'
* Fix priv and classic mode. See merge request easycorp/zentaopms!2031
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user