From 539c7e57e01f54dc10e4e836b524d5c7f253a772 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 4 Nov 2025 16:37:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=AE=A1=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/service/user/user/UserIdentityServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5c84e4ac..9c0c0f29 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 @@ -43,7 +43,7 @@ public class UserIdentityServiceImpl implements UserIdentityService { Administrator administrator = administratorService.getByUserId(userId); boolean isAdmin = Optional.of(administrator!= null).orElse(Boolean.FALSE); boolean isSuperAdmin = Optional.ofNullable(administrator) - .map(e -> RoomRolesEnum.SUPER_ADMIN.eq(e.getRoles())) + .map(e -> RoomRolesEnum.MANAGER.eq(e.getRoles()) || RoomRolesEnum.SUPER_ADMIN.eq(e.getRoles())) .orElse(Boolean.FALSE); boolean isManager = Optional.ofNullable(administrator) .map(e -> RoomRolesEnum.MANAGER.eq(e.getRoles()))