mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: list all app when user doesn't have any app permission
This commit is contained in:
parent
a35573544c
commit
944b06ee82
@ -144,6 +144,11 @@ public class AppInfoController {
|
|||||||
Set<Long> targetIds = Sets.newHashSet();
|
Set<Long> targetIds = Sets.newHashSet();
|
||||||
webAuthService.fetchMyPermissionTargets(RoleScope.APP).values().forEach(targetIds::addAll);
|
webAuthService.fetchMyPermissionTargets(RoleScope.APP).values().forEach(targetIds::addAll);
|
||||||
queryAppIds = targetIds;
|
queryAppIds = targetIds;
|
||||||
|
|
||||||
|
if (CollectionUtils.isEmpty(queryAppIds)) {
|
||||||
|
return ResultDTO.success(new PageResult<>());
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
queryAppIds = Collections.emptySet();
|
queryAppIds = Collections.emptySet();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user