Skip to content

Commit

Permalink
[v9.3.x] API: Fix delete user failure due to quota not enabled (grafa…
Browse files Browse the repository at this point in the history
…na#59879)

API: Fix delete user failure due to quota not enabled (grafana#59875)

(cherry picked from commit 4259b6b)

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
  • Loading branch information
2 people authored and GuaYounesPW committed Feb 8, 2023
1 parent a5a46a9 commit 564f39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/quota/quotaimpl/quota.go
Expand Up @@ -33,7 +33,7 @@ func (s *serviceDisabled) CheckQuotaReached(ctx context.Context, targetSrv quota
}

func (s *serviceDisabled) DeleteQuotaForUser(ctx context.Context, userID int64) error {
return quota.ErrDisabled
return nil
}

func (s *serviceDisabled) RegisterQuotaReporter(e *quota.NewUsageReporter) error {
Expand Down

0 comments on commit 564f39f

Please sign in to comment.