mirror of
https://github.com/grafana/grafana.git
synced 2026-06-13 18:40:59 -04:00
* LibraryPanels: Return 403 instead of 500 for insufficient permissions Library element creation previously returned an untyped fmt.Errorf containing "insufficient permissions", which the library elements API mapped to 403 via a string match but which fell through to a generic 500 in the dashboard import handler. Make the error a typed errutil.Forbidden so callers such as /api/dashboards/import propagate the correct HTTP status. Fixes gz#225599 * fixup! LibraryPanels: Return 403 instead of 500 for insufficient permissions |
||
|---|---|---|
| .. | ||
| model.go | ||