Skip to content

Commit 78b317a

Browse files
authored
Merge pull request #493 from chaitin/fix-team-user
fix: 修复团队用户类型
2 parents fc9b100 + 21d0999 commit 78b317a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/biz/team/repo/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (r *TeamGroupUserRepo) CreateUsers(ctx context.Context, teamID uuid.UUID, r
102102
SetEmail(emailAddr).
103103
SetStatus(consts.UserStatusActive).
104104
SetPassword("").
105-
SetRole(consts.UserRoleIndividual).
105+
SetRole(consts.UserRoleSubAccount).
106106
Save(ctx)
107107
if err != nil {
108108
r.logger.ErrorContext(ctx, "create user failed", "error", err, "email", emailAddr)

0 commit comments

Comments
 (0)