Bugfix: create app within user

Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
This commit is contained in:
Zhengyi Lai
2020-07-09 10:34:11 +08:00
parent f53fc243f5
commit fdb22d0191

View File

@@ -504,6 +504,10 @@ func (h *openpitrixHandler) CreateApp(req *restful.Request, resp *restful.Respon
createAppRequest.Username = req.HeaderParameter(constants.UserNameHeader)
if req.PathParameter("workspace") != "" {
createAppRequest.Isv = req.PathParameter("workspace")
}
validate, _ := strconv.ParseBool(req.QueryParameter("validate"))
var result interface{}