Return correct `public` state on collection creation

(in returned JSON data)

Ref T675
pull/148/head
Matt Baer 5 years ago
parent afadf6fdf6
commit f8d57d9e75
  1. 1
      database.go

@ -282,6 +282,7 @@ func (db *datastore) CreateCollection(cfg *config.Config, alias, title string, u
Title: title,
OwnerID: userID,
PublicOwner: false,
Public: defaultVisibility(cfg) == CollPublic,
}
c.ID, err = res.LastInsertId()

Loading…
Cancel
Save