Allow the catch-all district to do uploads

This commit is contained in:
Eli Ribble 2026-03-19 03:25:36 +00:00
parent 2f61b224de
commit 434746aa99
No known key found for this signature in database
3 changed files with 10 additions and 2 deletions

View file

@ -108,7 +108,7 @@ type FormUploadPool struct{}
func postUploadPoolFlyoverCreate(ctx context.Context, r *http.Request, u platform.User, f FormUploadPool) (string, *nhttp.ErrorWithStatus) {
// If the organization we're uploading to doesn't have a service area, we can't process the upload correctly
if !u.Organization.HasServiceArea() {
if !(u.Organization.HasServiceArea() || u.Organization.IsCatchall()) {
return "", nhttp.NewErrorStatus(http.StatusConflict, "Your organization does not yet have a service area")
}
uploads, err := file.SaveFileUpload(r, "csvfile", file.CollectionCSV)