Revert "check orgId on delete"

This reverts commit 2a7adbb2fa.
This commit is contained in:
Ryan McKinley
2024-03-19 09:16:49 +03:00
parent 2a7adbb2fa
commit b303c5c28a
-3
View File
@@ -356,9 +356,6 @@ func (hs *HTTPServer) DeleteDashboardSnapshot(c *contextmodel.ReqContext) respon
if queryResult == nil {
return response.Error(http.StatusNotFound, "Failed to get dashboard snapshot", nil)
}
if queryResult.OrgID != c.OrgID {
return response.Error(http.StatusUnauthorized, "OrgID mismatch", nil)
}
if queryResult.External {
err := deleteExternalDashboardSnapshot(queryResult.ExternalDeleteURL)