Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #342 from GSM-MSG/341-update/admin-account-club-up…
Browse files Browse the repository at this point in the history
…date-authority

🔀  :: 선생님 동아리 수정 권한 삭제
  • Loading branch information
KimTaeO authored Apr 25, 2024
2 parents 65be6b6 + 42ddbb7 commit a25e5e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class UpdateClubServiceImpl(
val foundClub = clubRepository.findById(id)
.orElseThrow { throw ClubNotFoundException() }
val user = userUtil.fetchCurrentUser()
if (user != foundClub.user && !user.roles.contains(Role.ROLE_ADMIN))
if (user != foundClub.user)
throw HeadNotSameException()
val club = clubConverter.toEntity(id, clubDto, foundClub.user, foundClub.type, foundClub.clubStatus)
activityImgRepository.deleteByClub(foundClub)
Expand Down

0 comments on commit a25e5e0

Please sign in to comment.