Fix getting one namespace

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-03-21 13:55:42 +01:00
parent 51c74de1de
commit 26ffd2fd22
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 2 deletions

View File

@ -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
}