diff --git a/pkg/services/quota/quotaimpl/store.go b/pkg/services/quota/quotaimpl/store.go index d6111580f28..78bc38fe4d9 100644 --- a/pkg/services/quota/quotaimpl/store.go +++ b/pkg/services/quota/quotaimpl/store.go @@ -30,6 +30,10 @@ func (ss *sqlStore) DeleteByUser(ctx quota.Context, userID int64) error { func (ss *sqlStore) Get(ctx quota.Context, scopeParams *quota.ScopeParameters) (*quota.Map, error) { limits := quota.Map{} + if scopeParams == nil { + return &limits, nil + } + if scopeParams.OrgID != 0 { orgLimits, err := ss.getOrgScopeQuota(ctx, scopeParams.OrgID) if err != nil {