Browse Source

revert: from pro to ce make all secondary users admins

abhishek9686 1 year ago
parent
commit
3332d4da9c
1 changed files with 3 additions and 0 deletions
  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