1
0

Fixed namespace updates not working

This commit is contained in:
kolaente
2018-07-04 08:15:47 +02:00
parent ac134fb16b
commit b57ca9375a
7 changed files with 83 additions and 72 deletions

View File

@ -5,7 +5,6 @@ import (
"github.com/labstack/echo"
"net/http"
"strconv"
"fmt"
)
func AddNamespace(c echo.Context) error {
@ -126,8 +125,6 @@ func addOrUpdateNamespace(c echo.Context) error {
return c.JSON(http.StatusForbidden, models.Message{"You need to be namespace admin to edit a namespace."})
}
fmt.Println(namespace)
err = models.CreateOrUpdateNamespace(namespace)
if err != nil {
return c.JSON(http.StatusInternalServerError, models.Message{"An error occured."})