From 26ffd2fd22cba0daa6889d71ec239e01bedf8b37 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 21 Mar 2020 13:55:42 +0100 Subject: [PATCH] Fix getting one namespace Signed-off-by: kolaente --- pkg/models/namespace.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/models/namespace.go b/pkg/models/namespace.go index 21299633c5..2e01c5dc03 100644 --- a/pkg/models/namespace.go +++ b/pkg/models/namespace.go @@ -133,8 +133,7 @@ func (n *Namespace) CheckIsArchived() error { // @Failure 500 {object} models.Message "Internal error" // @Router /namespaces/{id} [get] func (n *Namespace) ReadOne() (err error) { - // Get the namespace Owner - n.Owner, err = user.GetUserByID(n.OwnerID) + *n, err = GetNamespaceByID(n.ID) return }