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();
$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),

Loading…
Cancel
Save