fix perform action call allowfunc

This commit is contained in:
wanyaoqi
2018-10-30 16:17:22 +08:00
parent 2d8ab8722e
commit 2874b808d8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1034,7 +1034,7 @@ func objectPerformAction(dispatcher *DBModelDispatcher, model IModel, modelValue
return nil, httperrors.NewActionNotFoundError(msg)
}
outs := funcValue.Call(params)
outs := allowFuncValue.Call(params)
if len(outs) != 1 {
return nil, httperrors.NewInternalServerError("Invald %s return value", allowFuncName)
}