Skip to content

Commit

Permalink
RBAC: Remove legacy AC editor and admin role on new dashboard route (#…
Browse files Browse the repository at this point in the history
…68762)

remove legacy AC editor and admin role on new dashboard route
  • Loading branch information
eleijonmarck committed May 22, 2023
1 parent e17f676 commit 94283f5
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 @@ -46,7 +46,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 94283f5

Please sign in to comment.