add recovery limit state from storage
This commit is contained in:
1 parent
4d81fe7a26
commit
8af97e56d7
7 files changed
+114
-106
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user