mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
(improvement)(headless) When obtaining the domain list, do not obtain the sub-domain (#1628)
Co-authored-by: lxwcodemonkey
This commit is contained in:
@@ -124,10 +124,7 @@ public class DomainServiceImpl implements DomainService {
|
|||||||
domainWithAuth = domainResps.stream()
|
domainWithAuth = domainResps.stream()
|
||||||
.filter(domainResp -> checkAdminPermission(orgIds, user, domainResp))
|
.filter(domainResp -> checkAdminPermission(orgIds, user, domainResp))
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
|
return domainWithAuth.stream()
|
||||||
List<Long> domainIds = domainWithAuth.stream().map(DomainResp::getId)
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
return getDomainChildren(domainIds).stream()
|
|
||||||
.peek(domainResp -> domainResp.setHasEditPermission(true))
|
.peek(domainResp -> domainResp.setHasEditPermission(true))
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user