From aeff343a31aaaa23fa0be4f63a18d20a95840792 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 19 Sep 2018 08:44:00 +0200 Subject: [PATCH] Fixed namespace update not working --- models/namespace_update.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/namespace_update.go b/models/namespace_update.go index b46cea33..56a00993 100644 --- a/models/namespace_update.go +++ b/models/namespace_update.go @@ -14,6 +14,9 @@ func (n *Namespace) Update() (err error) { } // Check if the (new) owner exists + if n.OwnerID == 0 { + n.OwnerID = n.Owner.ID + } if currentNamespace.OwnerID != n.OwnerID { n.Owner, err = GetUserByID(n.OwnerID) if err != nil {