Skip to content

Commit

Permalink
merge: (#159) 최고 관리자 로그인 오류 해결 (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 authored Nov 27, 2022
2 parents b7c200d + bcfd385 commit fa90013
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import team.comit.simtong.global.annotation.UseCase

/**
*
* Admin의 로그인 기능을 담당하는 AdminSignInUseCase
* 관리자의 로그인 기능을 담당하는 AdminSignInUseCase
*
* @author Chokyunghyeon
* @date 2022/10/04
Expand All @@ -30,7 +30,7 @@ class AdminSignInUseCase(
val admin = queryUserPort.queryUserByEmployeeNumber(request.employeeNumber)
?: throw UserNotFoundException.EXCEPTION

if (Authority.ROLE_ADMIN != admin.authority) {
if (Authority.ROLE_COMMON == admin.authority) {
throw DifferentPermissionAccountException.EXCEPTION
}

Expand Down

0 comments on commit fa90013

Please sign in to comment.