INNER CODE UNIT · Go

orgUsers

Shuffle/Shuffle · backend/go-app/main.go:512

		orgUsers := make([]shuffle.User, 0, len(neworg.Users)+1)
		for _, orgUser := range neworg.Users {
			if orgUser.Id != "" && orgUser.Id != newUser.Id {
				orgUsers = append(orgUsers, orgUser)
			}
		}
		neworg.Users = append(orgUsers, *newUser)
		for tutorialIndex, tutorial := range neworg.Tutorials {
			if tutorial.Name == "Invite teammates" {
				neworg.Tutorials[tutorialIndex].Description = fmt.Sprintf("%d users are in your org. Org name and Image change next.", len(neworg.Users))
				if len(neworg.Users) > 1 {
					neworg.Tutorials[tutorialIndex].Done = true
					neworg.Tutorials[tutorialIndex].Link = "/admin?tab=users"
				}

				break
			}
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…