Преглед изворни кода

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