mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +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()
|
||||
.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()
|
||||
|
||||
Reference in New Issue
Block a user