From 25460ab7f28a757071e52b67e6b32b1c4d8ef194 Mon Sep 17 00:00:00 2001 From: Umjiseung <127853946+Umjiseung@users.noreply.github.com> Date: Tue, 12 Mar 2024 00:31:30 +0900 Subject: [PATCH] =?UTF-8?q?update=20::=20=EC=9C=84=EC=9E=84=EC=9E=90=20?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EA=B2=80=EC=A6=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/msg/gauth/domain/client/service/DelegateOwnerService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/msg/gauth/domain/client/service/DelegateOwnerService.kt b/src/main/kotlin/com/msg/gauth/domain/client/service/DelegateOwnerService.kt index 706e9a14..66737792 100644 --- a/src/main/kotlin/com/msg/gauth/domain/client/service/DelegateOwnerService.kt +++ b/src/main/kotlin/com/msg/gauth/domain/client/service/DelegateOwnerService.kt @@ -35,7 +35,7 @@ class DelegateOwnerService( val delegateUser = userRepository.findByIdOrNull(delegateUserId) ?: throw UserNotFoundException() - if (delegateUser.userRole.any { it.userRoleType != UserRoleType.ROLE_STUDENT }) + if (!delegateUser.userRole.any { it.userRoleType == UserRoleType.ROLE_STUDENT }) throw InvalidDelegateUserException() val updateClient = Client(