mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add permission checking to alert rules in the folders view (#47686)
This commit is contained in:
@@ -406,6 +406,8 @@ export function getAppRoutes(): RouteDescriptor[] {
|
||||
},
|
||||
{
|
||||
path: '/dashboards/f/:uid/:slug/alerting',
|
||||
roles: () =>
|
||||
contextSrv.evaluatePermission(() => ['Viewer', 'Editor', 'Admin'], [AccessControlAction.AlertingRuleRead]),
|
||||
component: SafeDynamicImport(
|
||||
() => import(/* webpackChunkName: "FolderAlerting"*/ 'app/features/folders/FolderAlerting')
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user