refactor: 优化角色分配功能相关代码

This commit is contained in:
2024-11-11 20:59:16 +08:00
parent d4b02ba918
commit ad3f8329dd
14 changed files with 61 additions and 148 deletions

View File

@@ -100,7 +100,7 @@ public class UserContext implements Serializable {
if (CollUtil.isEmpty(roleCodes)) {
return false;
}
return roleCodes.contains(SysConstants.ADMIN_ROLE_CODE);
return roleCodes.contains(SysConstants.SUPER_ROLE_CODE);
}
/**