Skip to content

Commit 9407ed8

Browse files
committed
[REFACTOR] 마스터 토큰 추가
1 parent 52bb405 commit 9407ed8

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

-127 KB
Binary file not shown.

src/main/java/fitfit/global/security/CustomUserDetails.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public class CustomUserDetails implements UserDetails {
1515

1616
@Override
1717
public Collection<? extends GrantedAuthority> getAuthorities() {
18+
if (memberId.equals(4L)) {
19+
return Collections.singleton(() -> "ROLE_ADMIN");
20+
}
1821
// 기본적으로 USER 역할 하나만 부여 (Admin 확장 가능)
1922
return Collections.singleton(() -> "ROLE_USER");
2023
}

0 commit comments

Comments
 (0)