| | |
| | | public boolean isThreeAdminCurUser() { |
| | | SessionInfo sessionInfo = WebUtil.getCurrentUserSessionInfoNotException(); |
| | | try { |
| | | RoleInfo[] roles = platformClientUtil.getFrameworkService().fetchRoleInfoByUserId(sessionInfo.getUserId()); |
| | | RoleInfo[] roles = platformClientUtil.getFrameworkService().fetchRoleInfoByUserId(sessionInfo.getUserOid()); |
| | | for (RoleInfo role : roles) { |
| | | if (role.name.equalsIgnoreCase("系统管理员")){ |
| | | return true; |
| | |
| | | } |
| | | return roleRightByUserName; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取当前用户具有权限的所有模块 |
| | |
| | | |
| | | |
| | | public FunctionInfo[] getFunctionsByParentId(String parentId, String userName) { |
| | | |
| | | FunctionInfo[] funcObjs = null; |
| | | try { |
| | | if(isDeveloper(userName)){ |