refactor: 모든 관리자에 해당되는 AdminType.ALL 타입 추가

This commit is contained in:
이상진 2025-09-16 22:03:11 +09:00
parent 6ee7aa4339
commit a6d028de45
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,8 @@ class AdminEntity(
enum class AdminType {
HQ,
STORE
STORE,
ALL
}
enum class AdminPermissionLevel(

View File

@ -75,7 +75,7 @@ class AdminInterceptor(
throw AuthException(AuthErrorCode.INVALID_TOKEN)
}
if (type != AdminType.HQ && type != requiredType) {
if (requiredType != AdminType.ALL && type != requiredType) {
log.warn { "[AdminInterceptor] 관리자 권한 부족: requiredType=${requiredType} / current=${type}" }
throw AuthException(AuthErrorCode.ACCESS_DENIED)
}