code: func appendCatalogAccessRecord(accessRecords []auth.Access, r *http.Request) []auth.Access {
  	route := mux.CurrentRoute(r)
  	routeName := route.GetName()
  
  	if routeName == v2.RouteNameCatalog {
  		resource := auth.Resource{
  			Type: "registry",
  			Name: "catalog",
  		}
  
  		accessRecords = append(accessRecords,
  			auth.Access{
  				Resource: resource,
  				Action:   "*",
  			})
  	}
  	return accessRecords
  }
docs: // Add the access record for the catalog if it's our current route