feat: (REQ-3057) 本单位项目更换群主
This commit is contained in:
parent
be27634f22
commit
a82d2beff3
@ -190,7 +190,7 @@ public class ChatGroupChangeOwnerEventHandler implements EventHandler, Initializ
|
||||
return false;
|
||||
}
|
||||
//没有管理员则返回 则不更换群主
|
||||
Optional<SaasRoleRes> firstWhenOu = saasRoleResWhenOu.stream().filter(item -> item.getRoleType().equals("admin")).findFirst();
|
||||
Optional<SaasRoleRes> firstWhenOu = saasRoleResWhenOu.stream().filter(item -> item.getRoleType().equals("admin") || item.getRoleType().equals("super_admin")).findFirst();
|
||||
if (!firstWhenOu.isPresent()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user