[#44] 매장 기능 도입 #45

Merged
pricelees merged 116 commits from feat/#44 into main 2025-09-20 03:15:06 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit a6d028de45 - Show all commits

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)
}