Skip to content

Commit 168d0c1

Browse files
committed
Remove the default value of true for secured
1 parent 7c07d69 commit 168d0c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

interceptors/Security.cfc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,13 +556,9 @@ component accessors="true" extends="coldbox.system.Interceptor" {
556556
* @return { allow:boolean, type:string(authentication|authorization)}
557557
*/
558558
private struct function verifySecuredAnnotation( required securedValue, required event ){
559-
// If no value, then default it to true
560-
if ( !len( arguments.securedValue ) ) {
561-
arguments.securedValue = true;
562-
}
563559

564560
// Are we securing?
565-
if ( isBoolean( arguments.securedValue ) && !arguments.securedValue ) {
561+
if ( len( arguments.securedValue ) && isBoolean( arguments.securedValue ) && !arguments.securedValue ) {
566562
return {
567563
"allow" : true,
568564
"type" : "authentication"

0 commit comments

Comments
 (0)