From 7b20bafcb00ea2ac2c42f8e62ae0166287daaaee Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 11 Nov 2025 11:59:45 +0800 Subject: [PATCH] =?UTF-8?q?admin=20=E7=A6=81=E7=94=A8=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/service/user/user/UserIdentityServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserIdentityServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserIdentityServiceImpl.java index 9c0c0f29..e50ade11 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserIdentityServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserIdentityServiceImpl.java @@ -41,6 +41,10 @@ public class UserIdentityServiceImpl implements UserIdentityService { teamProfileClient.getByMemberId(userId)); Administrator administrator = administratorService.getByUserId(userId); + if (!administrator.getStatus()) { + administrator = null; + } + boolean isAdmin = Optional.of(administrator!= null).orElse(Boolean.FALSE); boolean isSuperAdmin = Optional.ofNullable(administrator) .map(e -> RoomRolesEnum.MANAGER.eq(e.getRoles()) || RoomRolesEnum.SUPER_ADMIN.eq(e.getRoles()))