mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
Fixed creation of new namespaces
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user