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