|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.ibeetl.admin.core.service;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import com.ibeetl.admin.core.dao.*;
|
|
|
|
|
import com.ibeetl.admin.core.entity.*;
|
|
|
|
|
import com.ibeetl.admin.core.rbac.DataAccessFactory;
|
|
|
|
@ -97,6 +98,7 @@ public class CorePlatformService {
|
|
|
|
|
public CoreUser getCurrentUser() {
|
|
|
|
|
checkSession();
|
|
|
|
|
CoreUser user = (CoreUser) httpRequestLocal.getSessionValue(ACCESS_CURRENT_USER);
|
|
|
|
|
System.out.println(JSONUtil.toJsonStr(user));
|
|
|
|
|
return user;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -173,7 +175,6 @@ public class CorePlatformService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public MenuItem getMenuItem(long userId, long orgId) {
|
|
|
|
|
log.debug("获取菜单传入的用户ID: " + userId);
|
|
|
|
|
CoreUser user = sysUserDao.unique(userId);
|
|
|
|
|
if (this.isSupperAdmin(user)) {
|
|
|
|
|
return self.buildMenu();
|
|
|
|
|