Merge pull request #15394 from grafana/13066-save-as-dashboard

fix: No need to have edit permissions to be able to "Save as"
This commit is contained in:
Torkel Ödegaard 2019-02-12 15:57:41 +01:00 committed by GitHub
commit bde9e9d5a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ export class SettingsCtrl {
});
});
this.canSaveAs = this.dashboard.meta.canEdit && contextSrv.hasEditPermissionInFolders;
this.canSaveAs = contextSrv.hasEditPermissionInFolders;
this.canSave = this.dashboard.meta.canSave;
this.canDelete = this.dashboard.meta.canSave;