Fixed namespace update not working
This commit is contained in:
parent
e93cba7108
commit
aeff343a31
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ func (n *Namespace) Update() (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the (new) owner exists
|
// Check if the (new) owner exists
|
||||||
|
if n.OwnerID == 0 {
|
||||||
|
n.OwnerID = n.Owner.ID
|
||||||
|
}
|
||||||
if currentNamespace.OwnerID != n.OwnerID {
|
if currentNamespace.OwnerID != n.OwnerID {
|
||||||
n.Owner, err = GetUserByID(n.OwnerID)
|
n.Owner, err = GetUserByID(n.OwnerID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue