|
@@ -161,7 +161,7 @@ public class GameAuthServiceImpl extends ServiceImpl<GameAuthMapper, GameAuth> i
|
|
throw new BaseException("参数错误, 无法查询到用户的权限角色信息");
|
|
throw new BaseException("参数错误, 无法查询到用户的权限角色信息");
|
|
}
|
|
}
|
|
//超管权限
|
|
//超管权限
|
|
- if (SecurityUtil.isAdmin() && Objects.equals(gameAuthRole.getAuthType(), GameAuthEnum.MANAGE.getValue())) {
|
|
|
|
|
|
+ if (SecurityUtil.isAdmin() || Objects.equals(gameAuthRole.getAuthType(), GameAuthEnum.MANAGE.getValue())) {
|
|
List<Long> gameIdList = super.list(new LambdaQueryWrapper<GameAuth>()
|
|
List<Long> gameIdList = super.list(new LambdaQueryWrapper<GameAuth>()
|
|
.eq(Strings.isNotBlank(userId), GameAuth::getUserId, Strings.isBlank(userId) ? null : Long.valueOf(userId))
|
|
.eq(Strings.isNotBlank(userId), GameAuth::getUserId, Strings.isBlank(userId) ? null : Long.valueOf(userId))
|
|
).stream().map(GameAuth::getGameId).collect(Collectors.toList());
|
|
).stream().map(GameAuth::getGameId).collect(Collectors.toList());
|