Skip to content

Commit

Permalink
revert: (#159) 비교 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Nov 27, 2022
1 parent 692cc48 commit 539c97e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AdminSignInUseCase(
val admin = queryUserPort.queryUserByEmployeeNumber(request.employeeNumber)
?: throw UserNotFoundException.EXCEPTION

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

Expand Down

0 comments on commit 539c97e

Please sign in to comment.