fix(nav): 비관리자 네비에 공개 메뉴 항목 표시 + DB 페이지명 정리
- renderNavbar: admin이 아닌 NAV_MENU 항목은 accessibleKeys 없이도 표시 - DB pages: purchase.request → '소모품 구매 관리'(admin), purchase.analysis → '소모품 분석'(admin) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -203,6 +203,8 @@ function renderNavbar(accessibleKeys) {
|
||||
const visibleItems = entry.items.filter(item => {
|
||||
if (item.admin && !isAdmin) return false;
|
||||
if (isAdmin) return true;
|
||||
// NAV_MENU에 admin 아닌 항목은 공개 (publicPageKeys 대응)
|
||||
if (!item.admin) return true;
|
||||
return accessibleKeys.includes(item.key);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user