Add user account roles

This commit is contained in:
Eli Ribble 2026-02-18 07:02:36 +00:00
parent b4817546df
commit 7ea66dc02e
No known key found for this signature in database
10 changed files with 188 additions and 12 deletions

View file

@ -151,6 +151,7 @@ func SignupUser(ctx context.Context, username string, name string, password stri
OrganizationID: omit.From(o.ID),
PasswordHash: omit.From(passwordHash),
PasswordHashType: omit.From(enums.HashtypeBcrypt14),
Role: omit.From(enums.UserroleAccountOwner),
Username: omit.From(username),
}
u, err := models.Users.Insert(&u_setter).One(ctx, db.PGInstance.BobDB)