feat: Users API, ownership transfer and removal of the legacy role string
This commit is contained in:
1 parent
094df63a7f
commit
80f7037d3a
124 files changed
+4644
-824
No files matched your search
@@ -129,7 +129,7 @@ func newContractRepositories(db *gorm.DB) contractRepositories {
|
||||
}
|
||||
|
||||
func contractUser(username string, email string) domainUser.User {
|
||||
return domainUser.User{Username: username, Password: "hashed", Email: email, Role: domainUser.RoleAdmin, IsVerified: true}
|
||||
return domainUser.User{Username: username, Password: "hashed", Email: email, RoleID: adminRoleID, IsVerified: true}
|
||||
}
|
||||
|
||||
func contractInvite(t *testing.T, repos contractRepositories, email string) domainInvite.Invite {
|
||||
|
||||
Reference in new issue
Block a user