Return correct `public` state on collection creation

(in returned JSON data)

Ref T675
This commit is contained in:
Matt Baer 2019-08-07 16:22:35 -04:00
parent afadf6fdf6
commit f8d57d9e75
1 changed files with 1 additions and 0 deletions

View File

@ -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()