Return correct `public` state on collection creation
(in returned JSON data) Ref T675
This commit is contained in:
parent
afadf6fdf6
commit
f8d57d9e75
|
@ -282,6 +282,7 @@ func (db *datastore) CreateCollection(cfg *config.Config, alias, title string, u
|
||||||
Title: title,
|
Title: title,
|
||||||
OwnerID: userID,
|
OwnerID: userID,
|
||||||
PublicOwner: false,
|
PublicOwner: false,
|
||||||
|
Public: defaultVisibility(cfg) == CollPublic,
|
||||||
}
|
}
|
||||||
|
|
||||||
c.ID, err = res.LastInsertId()
|
c.ID, err = res.LastInsertId()
|
||||||
|
|
Loading…
Reference in New Issue