Fix team rights not updating for namespace rights

This commit is contained in:
kolaente 2020-05-11 18:39:30 +02:00
parent 55cd74efca
commit 55cd40d175
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View file

@ -220,7 +220,7 @@ func (tn *TeamNamespace) Update() (err error) {
}
_, err = x.
Where("namespace_id = ? AND team_id = ?", tn.TeamID, tn.TeamID).
Where("namespace_id = ? AND team_id = ?", tn.NamespaceID, tn.TeamID).
Cols("right").
Update(tn)
return