Fixed namespace update not working

This commit is contained in:
kolaente 2018-09-19 08:44:00 +02:00
parent e93cba7108
commit aeff343a31
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

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