Skip to content

Commit

Permalink
Merge pull request #293 from GSM-MSG/292-service-delegator-authority-…
Browse files Browse the repository at this point in the history
…verification-logic-modify

🔀 :: 서비스 위임자 권한 로직 수정
  • Loading branch information
Umjiseung authored Mar 11, 2024
2 parents 062b7be + 25460ab commit cd6d17a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cd6d17a

Please sign in to comment.