기존 투자전략 메뉴 삭제

This commit is contained in:
Macbook
2026-05-24 16:07:16 +09:00
parent b95b232e5b
commit 958b813f3b
2 changed files with 3 additions and 14 deletions
+2 -1
View File
@@ -12,7 +12,7 @@ export type SettingsCategoryId =
| 'paper' | 'alert' | 'network' | 'admin';
export const TOP_MENU_IDS: TopMenuId[] = [
'dashboard', 'chart', 'paper', 'strategy', 'strategy-editor', 'backtest', 'settings',
'dashboard', 'chart', 'paper', 'strategy-editor', 'backtest', 'settings',
];
export const SETTINGS_MENU_IDS: SettingsCategoryId[] = [
@@ -65,6 +65,7 @@ export function canAccessMenu(
permissions: Record<string, boolean> | null | undefined,
menuId: string,
): boolean {
if (menuId === 'strategy') return false;
if (!permissions) return menuId === 'chart';
if (menuId === 'strategy-editor') {
if (permissions['strategy-editor'] === true) return true;