Skip to content

Commit

Permalink
Fix | #28 | @YongsHub | 권한 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
YongsHub committed May 21, 2024
1 parent 9494411 commit b7eeb1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cakk-common/src/main/java/com/cakk/common/enums/Role.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public enum Role {

ADMIN, MERCHANT, USER;
ADMIN, BUSINESS_OWNER, USER;

public String getSecurityRole() {
return "ROLE_" + this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public CertificationEvent getRequestCertificationMessage(CertificationParam para

public void promotedByBusinessOwner(User businessOwner) {
user = businessOwner;
user.upgradedRoleToMerchant();
user.upgradedRoleToBusinessOwner();
cakeShop.ownedByUser();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public User(
this.role = role;
}

public void upgradedRoleToMerchant() {
role = Role.MERCHANT;
public void upgradedRoleToBusinessOwner() {
role = Role.BUSINESS_OWNER;
}
}

0 comments on commit b7eeb1d

Please sign in to comment.