mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotations: Support filtering the target panels (#66325)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com> Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ export class EventEditorCtrl {
|
||||
|
||||
canDelete(): boolean {
|
||||
if (contextSrv.accessControlEnabled()) {
|
||||
if (this.event.source.type === 'dashboard') {
|
||||
if (this.event.source?.type === 'dashboard') {
|
||||
return !!this.panelCtrl.dashboard.meta.annotationsPermissions?.dashboard.canDelete;
|
||||
}
|
||||
return !!this.panelCtrl.dashboard.meta.annotationsPermissions?.organization.canDelete;
|
||||
|
||||
Reference in New Issue
Block a user