code/Model/Recipient/EmailRecipientCondition.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 112-122 (lines=11) @@ | 
                                                            
                                    | 109 |  |      * @param array $context Virtual parameter to allow context to be passed in to check | 
                                                            
                                    | 110 |  |      * @return bool | 
                                                            
                                    | 111 |  |      */ | 
                                                            
                                    | 112 |  |     public function canCreate($member = null, $context = []) | 
                                                            
                                    | 113 |  |     { | 
                                                            
                                    | 114 |  |         // Check parent page | 
                                                            
                                    | 115 |  |         $parent = $this->getCanCreateContext(func_get_args()); | 
                                                            
                                    | 116 |  |         if ($parent) { | 
                                                            
                                    | 117 |  |             return $parent->canEdit($member); | 
                                                            
                                    | 118 |  |         } | 
                                                            
                                    | 119 |  |  | 
                                                            
                                    | 120 |  |         // Fall back to secure admin permissions | 
                                                            
                                    | 121 |  |         return parent::canCreate($member); | 
                                                            
                                    | 122 |  |     } | 
                                                            
                                    | 123 |  |  | 
                                                            
                                    | 124 |  |     /** | 
                                                            
                                    | 125 |  |      * Helper method to check the parent for this object | 
                                                                        
                 
                                                            
                    
code/Model/Recipient/EmailRecipient.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 399-409 (lines=11) @@ | 
                                                            
                                    | 396 |  |      * @param array $context Virtual parameter to allow context to be passed in to check | 
                                                            
                                    | 397 |  |      * @return bool | 
                                                            
                                    | 398 |  |      */ | 
                                                            
                                    | 399 |  |     public function canCreate($member = null, $context = []) | 
                                                            
                                    | 400 |  |     { | 
                                                            
                                    | 401 |  |         // Check parent page | 
                                                            
                                    | 402 |  |         $parent = $this->getCanCreateContext(func_get_args()); | 
                                                            
                                    | 403 |  |         if ($parent) { | 
                                                            
                                    | 404 |  |             return $parent->canEdit($member); | 
                                                            
                                    | 405 |  |         } | 
                                                            
                                    | 406 |  |  | 
                                                            
                                    | 407 |  |         // Fall back to secure admin permissions | 
                                                            
                                    | 408 |  |         return parent::canCreate($member); | 
                                                            
                                    | 409 |  |     } | 
                                                            
                                    | 410 |  |  | 
                                                            
                                    | 411 |  |     /** | 
                                                            
                                    | 412 |  |      * Helper method to check the parent for this object | 
                                                                        
                 
                                                            
                    
code/Model/EditableCustomRule.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 93-103 (lines=11) @@ | 
                                                            
                                    | 90 |  |      * @param array $context Virtual parameter to allow context to be passed in to check | 
                                                            
                                    | 91 |  |      * @return bool | 
                                                            
                                    | 92 |  |      */ | 
                                                            
                                    | 93 |  |     public function canCreate($member = null, $context = []) | 
                                                            
                                    | 94 |  |     { | 
                                                            
                                    | 95 |  |         // Check parent page | 
                                                            
                                    | 96 |  |         $parent = $this->getCanCreateContext(func_get_args()); | 
                                                            
                                    | 97 |  |         if ($parent) { | 
                                                            
                                    | 98 |  |             return $parent->canEdit($member); | 
                                                            
                                    | 99 |  |         } | 
                                                            
                                    | 100 |  |  | 
                                                            
                                    | 101 |  |         // Fall back to secure admin permissions | 
                                                            
                                    | 102 |  |         return parent::canCreate($member); | 
                                                            
                                    | 103 |  |     } | 
                                                            
                                    | 104 |  |  | 
                                                            
                                    | 105 |  |     /** | 
                                                            
                                    | 106 |  |      * Helper method to check the parent for this object | 
                                                                        
                 
                                                            
                    
code/Model/EditableFormField.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 520-530 (lines=11) @@ | 
                                                            
                                    | 517 |  |      * @param array $context Virtual parameter to allow context to be passed in to check | 
                                                            
                                    | 518 |  |      * @return bool | 
                                                            
                                    | 519 |  |      */ | 
                                                            
                                    | 520 |  |     public function canCreate($member = null, $context = []) | 
                                                            
                                    | 521 |  |     { | 
                                                            
                                    | 522 |  |         // Check parent page | 
                                                            
                                    | 523 |  |         $parent = $this->getCanCreateContext(func_get_args()); | 
                                                            
                                    | 524 |  |         if ($parent) { | 
                                                            
                                    | 525 |  |             return $parent->canEdit($member); | 
                                                            
                                    | 526 |  |         } | 
                                                            
                                    | 527 |  |  | 
                                                            
                                    | 528 |  |         // Fall back to secure admin permissions | 
                                                            
                                    | 529 |  |         return parent::canCreate($member); | 
                                                            
                                    | 530 |  |     } | 
                                                            
                                    | 531 |  |  | 
                                                            
                                    | 532 |  |     /** | 
                                                            
                                    | 533 |  |      * Helper method to check the parent for this object |