mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed snapshot sharing issue
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapshotCommand) {
|
||||
if cmd.External {
|
||||
// external snapshot ref requires key and delete key
|
||||
if cmd.Key != "" && cmd.DeleteKey != "" {
|
||||
if cmd.Key == "" || cmd.DeleteKey == "" {
|
||||
c.JsonApiErr(400, "Missing key and delete key for external snapshot", nil)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user