pull/5/head
lqmac 4 months ago
parent 0a59ea405c
commit 4d2513a17a
  1. 14
      app/store/controller/store/User.php

@ -39,13 +39,13 @@ class User extends Controller
$storeUserId = StoreUserService::getLoginUserId(); $storeUserId = StoreUserService::getLoginUserId();
$roles = StoreRoleService::getLoginPermissions(); $roles = StoreRoleService::getLoginPermissions();
$modules = StoreModuleModel::getModules(); $modules = StoreModuleModel::getModules();
if ($roles['isSuper'] == 1) { // if ($roles['isSuper'] == 1) {
$modules = array_flip($modules); // $modules = array_flip($modules);
// var_dump($modules1); // // var_dump($modules1);
// exit(); // // exit();
unset($modules['apps-collector']); // unset($modules['apps-collector']);
$modules = array_keys($modules); // $modules = array_keys($modules);
} // }
return $this->renderSuccess([ return $this->renderSuccess([
// 用户信息 // 用户信息
'userInfo' => StoreUserModel::detail($storeUserId), 'userInfo' => StoreUserModel::detail($storeUserId),

Loading…
Cancel
Save