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/EditableFormField.php 1 location
|
@@ 521-531 (lines=11) @@
|
518 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
519 |
|
* @return bool |
520 |
|
*/ |
521 |
|
public function canCreate($member = null, $context = []) |
522 |
|
{ |
523 |
|
// Check parent page |
524 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
525 |
|
if ($parent) { |
526 |
|
return $parent->canEdit($member); |
527 |
|
} |
528 |
|
|
529 |
|
// Fall back to secure admin permissions |
530 |
|
return parent::canCreate($member); |
531 |
|
} |
532 |
|
|
533 |
|
/** |
534 |
|
* 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 |