Fix creation of new user organizations
This commit is contained in:
parent
3ae88f984a
commit
32f00afa8a
2 changed files with 5 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ func newUser(ctx context.Context, org Organization, user *models.User) User {
|
|||
|
||||
func CreateUser(ctx context.Context, username string, name string, password_hash string) (*User, error) {
|
||||
o_setter := models.OrganizationSetter{
|
||||
IsCatchall: omit.From(false),
|
||||
Name: omit.From(fmt.Sprintf("%s's organization", username)),
|
||||
}
|
||||
o, err := models.Organizations.Insert(&o_setter).One(ctx, db.PGInstance.BobDB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue