mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix fine-grained rule access control to use 403 for authorization error (#79239)
* use 403 for authorization error * update silences API * add ForbiddenError to rule API responses
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
errAuthorizationGeneric = errutil.Unauthorized("alerting.unauthorized")
|
||||
errAuthorizationGeneric = errutil.Forbidden("alerting.unauthorized")
|
||||
)
|
||||
|
||||
func NewAuthorizationErrorWithPermissions(action string, eval accesscontrol.Evaluator) error {
|
||||
|
||||
Reference in New Issue
Block a user