We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98ca2f commit c3aa461Copy full SHA for c3aa461
interceptors/Security.cfc
@@ -97,11 +97,13 @@ component accessors="true" extends="coldbox.system.Interceptor" {
97
arguments.settings.rules = variables.rulesLoader.normalizeRules( arguments.settings.rules, module );
98
99
// prepend them so the don't interfere with MAIN rules
100
- arrayPrepend(
101
- getProperty( "rules" ),
102
- arguments.settings.rules,
103
- true
104
- );
+ // one by one as I don't see a way to prepend the whole array at once
+ for ( var i = arguments.settings.rules.len(), i >= 1; i-- ){
+ arrayPrepend(
+ getProperty( "rules" ),
+ arguments.settings.rules[i]
105
+ );
106
+ }
107
108
// Log it
109
log.info( "+ Registered module (#arguments.module#) with cbSecurity" );
0 commit comments