From 3353c6ed190f9a0bdc6c6f90bc3ebdb6eddaa9e0 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Thu, 22 Jun 2023 09:58:52 +0200 Subject: [PATCH] fix(admin-ui): Add missing permission to metrics widget --- packages/admin-ui/src/lib/dashboard/src/default-widgets.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/admin-ui/src/lib/dashboard/src/default-widgets.ts b/packages/admin-ui/src/lib/dashboard/src/default-widgets.ts index 9e947e6c98..0863375fd8 100644 --- a/packages/admin-ui/src/lib/dashboard/src/default-widgets.ts +++ b/packages/admin-ui/src/lib/dashboard/src/default-widgets.ts @@ -16,6 +16,7 @@ export const DEFAULT_WIDGETS: { [id: string]: DashboardWidgetConfig } = { title: _('dashboard.metrics'), supportedWidths: [6, 8, 12], loadComponent: () => OrderChartWidgetComponent, + requiresPermissions: [Permission.ReadOrder], }, orderSummary: { title: _('dashboard.orders-summary'),