(fix)(headless)Restore the permissions management menu of the administrator's theme domain (#1626)

This commit is contained in:
SuperLiChaoRen
2024-09-04 16:39:57 +08:00
committed by GitHub
parent 9bbd781c6a
commit 37438e7731

View File

@@ -124,6 +124,12 @@ public class DomainServiceImpl implements DomainService {
domainWithAuth = domainResps.stream()
.filter(domainResp -> checkAdminPermission(orgIds, user, domainResp))
.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)) {
domainWithAuth = domainResps.stream()