Fixed creation of new namespaces
This commit is contained in:
parent
e5493965ff
commit
b24b245f4d
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ func (n *Namespace) Create(doer *User, _ int64) (err error) {
|
|||
if n.Name == "" {
|
||||
return ErrNamespaceNameCannotBeEmpty{NamespaceID: 0, UserID: doer.ID}
|
||||
}
|
||||
n.ID = 0 // This would otherwise prevent the creation of new lists after one was created
|
||||
|
||||
// Check if the User exists
|
||||
n.Owner, _, err = GetUserByID(doer.ID)
|
||||
|
|
Loading…
Reference in a new issue