From 04778b9641c48788b2a0d869db55a9e1e0829723 Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Fri, 20 Dec 2024 15:26:47 +0530 Subject: [PATCH] fix: route permissions for billing and alerts (#6686) --- frontend/src/utils/permission/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/utils/permission/index.ts b/frontend/src/utils/permission/index.ts index 6728a4599c..c546a55755 100644 --- a/frontend/src/utils/permission/index.ts +++ b/frontend/src/utils/permission/index.ts @@ -60,12 +60,12 @@ export const routePermission: Record = { CHANNELS_NEW: ['ADMIN'], DASHBOARD: ['ADMIN', 'EDITOR', 'VIEWER'], DASHBOARD_WIDGET: ['ADMIN', 'EDITOR', 'VIEWER'], - EDIT_ALERTS: ['ADMIN'], + EDIT_ALERTS: ['ADMIN', 'EDITOR'], ERROR_DETAIL: ['ADMIN', 'EDITOR', 'VIEWER'], HOME_PAGE: ['ADMIN', 'EDITOR', 'VIEWER'], LIST_ALL_ALERT: ['ADMIN', 'EDITOR', 'VIEWER'], ALERT_HISTORY: ['ADMIN', 'EDITOR', 'VIEWER'], - ALERT_OVERVIEW: ['ADMIN'], + ALERT_OVERVIEW: ['ADMIN', 'EDITOR', 'VIEWER'], LOGIN: ['ADMIN', 'EDITOR', 'VIEWER'], NOT_FOUND: ['ADMIN', 'VIEWER', 'EDITOR'], PASSWORD_RESET: ['ADMIN', 'EDITOR', 'VIEWER'], @@ -94,7 +94,7 @@ export const routePermission: Record = { GET_STARTED_AZURE_MONITORING: ['ADMIN', 'EDITOR', 'VIEWER'], WORKSPACE_LOCKED: ['ADMIN', 'EDITOR', 'VIEWER'], WORKSPACE_SUSPENDED: ['ADMIN', 'EDITOR', 'VIEWER'], - BILLING: ['ADMIN', 'EDITOR', 'VIEWER'], + BILLING: ['ADMIN'], SUPPORT: ['ADMIN', 'EDITOR', 'VIEWER'], SOMETHING_WENT_WRONG: ['ADMIN', 'EDITOR', 'VIEWER'], LOGS_SAVE_VIEWS: ['ADMIN', 'EDITOR', 'VIEWER'],