ROLE_ADMIN
This commit is contained in:
parent
ed756d6399
commit
91880d8096
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue