Browse Source

普通管理员也可以看到所有账号

master
nili 8 months ago
parent
commit
a6bf523e46
  1. 2
      game-service/src/main/java/awesome/group/game/service/AdminService.java

2
game-service/src/main/java/awesome/group/game/service/AdminService.java

@ -172,7 +172,7 @@ public class AdminService {
MatrixAdmin admin = adminMapper.selectById(adminId);
LambdaQueryWrapper<MatrixAdmin> query = Wrappers.lambdaQuery();
if (admin.getRole() == SUPER_ADMIN) {
if (admin.getRole() == SUPER_ADMIN || admin.getRole() == NORMAL_ADMIN) {
query.eq(MatrixAdmin::getChannel, channel);
} else {
query.eq(MatrixAdmin::getChannel, channel);

Loading…
Cancel
Save