generated from pricelees/issue-pr-template
[#44] 매장 기능 도입 #45
@ -30,7 +30,8 @@ class AdminEntity(
|
|||||||
|
|
||||||
enum class AdminType {
|
enum class AdminType {
|
||||||
HQ,
|
HQ,
|
||||||
STORE
|
STORE,
|
||||||
|
ALL
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class AdminPermissionLevel(
|
enum class AdminPermissionLevel(
|
||||||
|
|||||||
@ -75,7 +75,7 @@ class AdminInterceptor(
|
|||||||
throw AuthException(AuthErrorCode.INVALID_TOKEN)
|
throw AuthException(AuthErrorCode.INVALID_TOKEN)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type != AdminType.HQ && type != requiredType) {
|
if (requiredType != AdminType.ALL && type != requiredType) {
|
||||||
log.warn { "[AdminInterceptor] 관리자 권한 부족: requiredType=${requiredType} / current=${type}" }
|
log.warn { "[AdminInterceptor] 관리자 권한 부족: requiredType=${requiredType} / current=${type}" }
|
||||||
throw AuthException(AuthErrorCode.ACCESS_DENIED)
|
throw AuthException(AuthErrorCode.ACCESS_DENIED)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user