mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 04:57:28 +00:00
(fix)(headless)Restore the permissions management menu of the administrator's theme domain (#1626)
This commit is contained in:
@@ -124,6 +124,12 @@ 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());
|
||||||
|
|
||||||
|
List<Long> domainIds = domainWithAuth.stream().map(DomainResp::getId)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
return getDomainChildren(domainIds).stream()
|
||||||
|
.peek(domainResp -> domainResp.setHasEditPermission(true))
|
||||||
|
.collect(Collectors.toSet());
|
||||||
}
|
}
|
||||||
if (authTypeEnum.equals(AuthType.VISIBLE)) {
|
if (authTypeEnum.equals(AuthType.VISIBLE)) {
|
||||||
domainWithAuth = domainResps.stream()
|
domainWithAuth = domainResps.stream()
|
||||||
|
|||||||
Reference in New Issue
Block a user