Fixed namespace update not working

This commit is contained in:
kolaente 2018-09-19 08:44:00 +02:00
parent e93cba7108
commit aeff343a31
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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 {