add recovery limit state from storage

This commit is contained in:
DeniskaRediska committed 2019-11-19 12:21:22 +03:00
1 parent 4d81fe7a26
commit 8af97e56d7
7 files changed
+114 -106

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ func (handlerHelper) AuthenticateAccountingProxy(ctx *fasthttp.RequestCtx) domai
return domain.Create().SetError(err)
}
if account := accounting.GetAccounting(applicationId); account != nil && !account.Check(path) {
if account := accounting.GetAccounting(applicationId); account != nil && !account.Accept(path) {
err := errors.New("accounting error")
utils.WriteError(ctx, "forbidden", codes.ResourceExhausted, nil)
return domain.Create().SetError(err)