// GetSchoolsForUser returns a list of schools that the given user is enrolled in, excluding disabled schools.
GetSchoolsForUser returns a list of schools that the given user is enrolled in, excluding disabled schools.
// GetSchoolsForUser returns a list of schools that the given user is enrolled in excluding disabled schools .
func GetSchoolsForUser(user *User) ([]School, error) {
	schools := []School{}
	for _, info := range user.Schools {
		if !info.Enabled {
			continue
		}
		schools = append(schools, info.School)
	}
	return schools, nil
}
func GetSchoolsForUser ( user * User ) ( [ ] School , error ) { schools := [ ] School { } for _ , info := range user . Schools { if ! info . Enabled { continue } schools = append ( schools , info . School ) } return schools , nil }
GetSchoolsForUser returns a list of schools that the given user is enrolled in, excluding disabled schools.
GetSchoolsForUser returns a list of schools that the given user is enrolled in excluding disabled schools .