어드민 계정 식별 방법 수정

This commit is contained in:
dohyeons 2025-10-27 13:20:49 +09:00
parent bc36c00712
commit 4bbe29e18e
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ function AppLayoutInner({ children }: AppLayoutProps) {
} flex h-[calc(100vh-3.5rem)] w-72 max-w-72 min-w-72 flex-col border-r border-slate-200 bg-white transition-transform duration-300`}
>
{/* 사이드바 상단 - Admin/User 모드 전환 버튼 (관리자만) */}
{(user as ExtendedUserInfo)?.userType === "admin" && (
{(user as ExtendedUserInfo)?.userType?.toLowerCase().includes("admin") && (
<div className="border-b border-slate-200 p-3">
<Button
onClick={handleModeSwitch}