ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
@@ -198,7 +198,11 @@ } public boolean isAppLeader(String userId) { return userId != null && this.getRoles().stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader")); List<SysRole> roles = this.getRoles(); if(roles==null) {return false;} boolean appLeader = roles.stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader")); return userId != null && appLeader; } public Long getDeptId() {