Skip to content

Commit

Permalink
CLAP-355 Fix: validation 오류 수정
Browse files Browse the repository at this point in the history
<footer>
- #448
  • Loading branch information
joowojr committed Feb 10, 2025
1 parent bd696d4 commit 39295c7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
@Policy
public class ManagerDepartmentPolicy {
public void validateDepartment(final Department department, final MemberRole memberRole) {
if (!(department.isManager()
&& memberRole == MemberRole.ROLE_MANAGER)) {
throw new DomainException(MemberErrorCode.MANAGER_PERMISSION_DENIED);
if (!department.isManager() ){
if(memberRole == MemberRole.ROLE_MANAGER){
throw new DomainException(MemberErrorCode.MANAGER_PERMISSION_DENIED);
}
}
}
}

0 comments on commit 39295c7

Please sign in to comment.