Skip to content

Commit

Permalink
[v9.4.x] RBAC: Remove legacy AC editor and admin role on new dashboar…
Browse files Browse the repository at this point in the history
…d 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 94283f5)

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
  • Loading branch information
grafanabot and eleijonmarck committed May 22, 2023
1 parent 409cec2 commit 1c1be82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/routes/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1c1be82

Please sign in to comment.