ROLE_ADMIN

This commit is contained in:
sxu 2025-03-18 09:28:04 +08:00
parent ed756d6399
commit 91880d8096
1 changed files with 7 additions and 6 deletions

View File

@ -89,12 +89,13 @@ public class MgrAuthApi {
String roleCodeResult = null;
for (String roleCode : roleSet) {
roleCodeResult = roleCode;
if (roleCode.startsWith(RoleCodeV2Enum.ROLE_ADMIN.key())) {
if (CharSequenceUtil.split(roleCode, "&&").size() > 1) {
roleType = MgrRoleTypeV2Enum.ROLE_ADMIN.getKey();
} else {
roleType = LeConstants.DATA_DEFAULT_INTEGER;
}
if (roleCode.startsWith(RoleCodeV2Enum.ROLE_ADMIN.key()) || "admin".equals(roleCode)) {
roleType = MgrRoleTypeV2Enum.ROLE_ADMIN.getKey();
// if (CharSequenceUtil.split(roleCode, "&&").size() > 1) {
// roleType = MgrRoleTypeV2Enum.ROLE_ADMIN.getKey();
// } else {
// roleType = LeConstants.DATA_DEFAULT_INTEGER;
// }
break;
} else if (roleCode.startsWith(RoleCodeV2Enum.ROLE_ORG.key())) {
roleType = MgrRoleTypeV2Enum.ROLE_ORG.getKey();