feat: settings page update
This commit is contained in:
@@ -100,7 +100,7 @@ interface NavItem {
|
||||
url: string;
|
||||
icon?: LucideIcon;
|
||||
isActive?: boolean;
|
||||
requiredPermission?: "projects_read" | "placements_read" | "analytics_read" | "admin_full";
|
||||
requiredPermission?: "admin_full" | "projects_read" | "projects_write" | "creatives_read" | "creatives_write" | "placements_read" | "placements_write" | "analytics_read" | "analytics_without_clicks" | "analytics_own_creatives";
|
||||
tooltip?: string;
|
||||
items?: {
|
||||
title: string;
|
||||
@@ -404,8 +404,8 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||
});
|
||||
}
|
||||
|
||||
// 5. Аналитика — только подразделы
|
||||
if (hasPermission("analytics_read")) {
|
||||
// 5. Аналитика — проверяем любой из аналитических доступов
|
||||
if (hasPermission("analytics_read") || hasPermission("analytics_without_clicks") || hasPermission("analytics_own_creatives")) {
|
||||
items.push({
|
||||
title: "Аналитика",
|
||||
url: buildRoute.analytics(workspaceId),
|
||||
|
||||
Reference in New Issue
Block a user