fix: list all app when user doesn't have any app permission

This commit is contained in:
tjq 2024-08-11 19:34:46 +08:00
parent a35573544c
commit 944b06ee82

View File

@ -144,6 +144,11 @@ public class AppInfoController {
Set<Long> targetIds = Sets.newHashSet();
webAuthService.fetchMyPermissionTargets(RoleScope.APP).values().forEach(targetIds::addAll);
queryAppIds = targetIds;
if (CollectionUtils.isEmpty(queryAppIds)) {
return ResultDTO.success(new PageResult<>());
}
} else {
queryAppIds = Collections.emptySet();
}