fix(approve mutex)

This commit is contained in:
DeniskaRediska committed 2019-11-06 19:14:40 +03:00
1 parent 1a8ed4e8ea
commit 2a81e83b2e
5 files changed
+26 -28

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ func Complete(ctx *fasthttp.RequestCtx) {
path := string(ctx.Path())
if !approve.Complete(applicationId, path) {
if approver := approve.GetApprove(applicationId); approver != nil && !approver.Complete(path) {
utils.SendError("approve error", codes.PermissionDenied, nil, ctx)
return
}