uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
548 stars 147 forks source link

fix: return an error if organization doesnt exist on addproject #3738

Closed shreddedbacon closed 3 weeks ago

shreddedbacon commented 3 weeks ago

General Checklist

Database Migrations

Just a simple fix to make sure an unauthorized error is returned if an organization doesn't exist when adding a project. Previously it would get to the check for quota and fail with an obscure error about the project quota.

Cannot read properties of undefined (reading 'quotaProject')