* Modify admin user check.

This commit is contained in:
caoyanyi
2023-01-04 09:33:08 +08:00
parent c3f8d4873f
commit c853331163
+1 -1
View File
@@ -120,7 +120,7 @@ $(function()
<?php if(($tab == 'preference' or $tab == 'systemMode') and $this->config->vision == 'lite') continue;?>
<?php if($tab == 'systemMode' and !common::hasPriv('custom', 'mode')) continue;?>
<?php if($tab == 'preference' and !common::hasPriv('my', 'preference')) continue;?>
<?php if($tab == 'visionSwitch' and !strpos($app->user->visions, ',')) continue;?>
<?php if($tab == 'visionSwitch' and !strpos($app->user->visions, ',') and empty($app->user->admin) and strpos($app->company->admins, ",{$app->user->account},") === false) continue;?>
<li id="<?php echo $tab;?>">
<a href="###" title="<?php echo $tabName?>" data-target='<?php echo "#tab3{$blockNavId}Content{$tab}";?>' data-toggle="tab">
<?php echo $tabName;?>