@@ -15,12 +15,12 @@ component singleton {
15
15
* You will receive the security rule that matched and an instance of the
16
16
* ColdBox controller.
17
17
*
18
- * You must return a struct with two keys:
18
+ * You must return a struct with three keys:
19
19
* - allow:boolean True, user can continue access, false, invalid access actions will ensue
20
20
* - type:string(authentication|authorization) The type of block that ocurred. Either an authentication or an authorization issue.
21
21
* - messages:string Info/debug messages
22
22
*
23
- * @return { allow:boolean, type:authentication|authorization, messages:string }
23
+ * @return { allow:boolean, type:string( authentication|authorization) , messages:string }
24
24
*/
25
25
struct function ruleValidator ( required rule , required controller ){
26
26
return validateSecurity ( arguments .rule .permissions );
@@ -30,12 +30,12 @@ component singleton {
30
30
* This function is called once access to a handler/action is detected.
31
31
* You will receive the secured annotation value and an instance of the ColdBox Controller
32
32
*
33
- * You must return a struct with two keys:
33
+ * You must return a struct with three keys:
34
34
* - allow:boolean True, user can continue access, false, invalid access actions will ensue
35
35
* - type:string(authentication|authorization) The type of block that ocurred. Either an authentication or an authorization issue.
36
36
* - messages:string Info/debug messages
37
37
*
38
- * @return { allow:boolean, type:authentication|authorization, messages:string }
38
+ * @return { allow:boolean, type:string( authentication|authorization) , messages:string }
39
39
*/
40
40
struct function annotationValidator ( required securedValue , required controller ){
41
41
return validateSecurity ( arguments .securedValue );
0 commit comments