code: func filterUnauthorizedBuildersFromConsoles(c context.Context, cons []*common.Console) error {
  	buckets := stringset.New(0)
  	for _, con := range cons {
  		buckets = buckets.Union(con.Buckets())
  	}
  	perms, err := common.BucketPermissions(c, buckets.ToSlice()...)
  	if err != nil {
  		return err
  	}
  	for _, con := range cons {
  		con.FilterBuilders(perms)
  	}
  	return nil
  }
docs: // filterUnauthorizedBuildersFromConsoles filters out builders the user does not have access to.