Open mtiller opened 2 years ago
That's strange, the maxOrgsGuard
is correctly placed in the createOrg handler.
It isn't that the guard isn't working. For the default value, it definitely prevents organizations from being created. But when I set it to 10, I was then able to make more than 10 orgs. Then if I set it to 5 (with 10+ orgs already existing) and it still allowed me to create more.
Oh wow okay that is really weird. I'll have a look this weekend because this is an issue. Thanks so much for reporting!
It seems that if you provide any other value besides
1
forMELI_MAX_ORGS
, then the limit is not enforced. I scanned the code and couldn't find an obvious source for the bug. My experience is that if you configure a server with theMELI_MAX_ORGS
value set to5
, for example, you can create as many orgs as you want, you'll never get an error.