fix(approve mutex)
This commit is contained in:
1 parent
1a8ed4e8ea
commit
2a81e83b2e
5 files changed
+26
-28
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user