소스 검색

feat(go): assign service-user role on sync;

Vishal Dalwadi 4 달 전
부모
커밋
1d793e9f7a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pro/auth/sync.go

+ 1 - 1
pro/auth/sync.go

@@ -117,7 +117,7 @@ func syncUsers(idpUsers []idp.User) error {
 				AccountDisabled:            user.AccountDisabled,
 				Password:                   password,
 				AuthType:                   models.OAuth,
-				PlatformRoleID:             models.PlatformUser,
+				PlatformRoleID:             models.ServiceUser,
 			})
 			if err != nil {
 				return err