From 4d2513a17ad898c1221d282070663edbac011dc1 Mon Sep 17 00:00:00 2001 From: lqmac Date: Sun, 4 Aug 2024 23:58:10 +0800 Subject: [PATCH] 1 --- app/store/controller/store/User.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/store/controller/store/User.php b/app/store/controller/store/User.php index a37d4969..d50ba77d 100644 --- a/app/store/controller/store/User.php +++ b/app/store/controller/store/User.php @@ -39,13 +39,13 @@ class User extends Controller $storeUserId = StoreUserService::getLoginUserId(); $roles = StoreRoleService::getLoginPermissions(); $modules = StoreModuleModel::getModules(); - if ($roles['isSuper'] == 1) { - $modules = array_flip($modules); - // var_dump($modules1); - // exit(); - unset($modules['apps-collector']); - $modules = array_keys($modules); - } + // if ($roles['isSuper'] == 1) { + // $modules = array_flip($modules); + // // var_dump($modules1); + // // exit(); + // unset($modules['apps-collector']); + // $modules = array_keys($modules); + // } return $this->renderSuccess([ // 用户信息 'userInfo' => StoreUserModel::detail($storeUserId),