You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Ensure non-configured rules default to empty array
If a developer declines to set a value for
`moduleSettings.cbSecurity.rules`, they get an error:
```
Element SETTINGS.RULES is undefined in ARGUMENTS.
```
IMHO, this is a failure on Coldbox's part to properly merge the
dev-defined coldbox `moduleSettings.cbSecurity` struct with cbSecurity's
own `settings` struct. Regardless, I'd expect the `rules` array to
default to an empty array _[as documented](https://coldbox-security.ortusbooks.com/getting-started/first-chapter)_.
0 commit comments