[v9.4.x] RBAC: Remove legacy AC editor and admin role on new dashboard route (#68775)

RBAC: Remove legacy AC editor and admin role on new dashboard route (#68762)

remove legacy AC editor and admin role on new dashboard route

(cherry picked from commit 94283f5039)

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2023-05-22 10:37:43 +01:00
committed by GitHub
co-authored by Eric Leijonmarck
parent 409cec2e41
commit 1c1be82eb9
+1 -1
View File
@@ -76,7 +76,7 @@ export function getAppRoutes(): RouteDescriptor[] {
},
{
path: '/dashboard/new',
roles: () => contextSrv.evaluatePermission(() => ['Editor', 'Admin'], [AccessControlAction.DashboardsCreate]),
roles: () => contextSrv.evaluatePermission(() => [], [AccessControlAction.DashboardsCreate]),
pageClass: 'page-dashboard',
routeName: DashboardRoutes.New,
component: SafeDynamicImport(