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()))