generated from pricelees/issue-pr-template
refactor: 모든 관리자에 해당되는 AdminType.ALL 타입 추가
This commit is contained in:
parent
6ee7aa4339
commit
a6d028de45
@ -30,7 +30,8 @@ class AdminEntity(
|
||||
|
||||
enum class AdminType {
|
||||
HQ,
|
||||
STORE
|
||||
STORE,
|
||||
ALL
|
||||
}
|
||||
|
||||
enum class AdminPermissionLevel(
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user