Explorar o código

revert: from pro to ce make all secondary users admins

abhishek9686 hai 1 ano
pai
achega
3332d4da9c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      migrate/migrate.go

+ 3 - 0
migrate/migrate.go

@@ -357,6 +357,9 @@ func syncUsers() {
 	if err == nil {
 		for _, user := range users {
 			user := user
+			if user.PlatformRoleID.String() != "" {
+				continue
+			}
 			user.AuthType = models.BasicAuth
 			if logic.IsOauthUser(&user) == nil {
 				user.AuthType = models.OAuth