code/model/recipients/UserDefinedForm_EmailRecipient.php 1 location
|
@@ 305-314 (lines=10) @@
|
| 302 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 303 |
|
* @return bool |
| 304 |
|
*/ |
| 305 |
|
public function canCreate($member = null) |
| 306 |
|
{ |
| 307 |
|
// Check parent page |
| 308 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 309 |
|
if ($parent) { |
| 310 |
|
return $parent->canEdit($member); |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
// Fall back to secure admin permissions |
| 314 |
|
return parent::canCreate($member); |
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
/** |
code/model/EditableCustomRule.php 1 location
|
@@ 104-113 (lines=10) @@
|
| 101 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 102 |
|
* @return bool |
| 103 |
|
*/ |
| 104 |
|
public function canCreate($member = null) |
| 105 |
|
{ |
| 106 |
|
// Check parent page |
| 107 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 108 |
|
if ($parent) { |
| 109 |
|
return $parent->canEdit($member); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
// Fall back to secure admin permissions |
| 113 |
|
return parent::canCreate($member); |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
/** |
code/model/recipients/UserDefinedForm_EmailRecipientCondition.php 1 location
|
@@ 103-112 (lines=10) @@
|
| 100 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 101 |
|
* @return bool |
| 102 |
|
*/ |
| 103 |
|
public function canCreate($member = null) |
| 104 |
|
{ |
| 105 |
|
// Check parent page |
| 106 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 107 |
|
if ($parent) { |
| 108 |
|
return $parent->canEdit($member); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
// Fall back to secure admin permissions |
| 112 |
|
return parent::canCreate($member); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
/** |
code/model/editableformfields/EditableFormField.php 1 location
|
@@ 468-477 (lines=10) @@
|
| 465 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 466 |
|
* @return bool |
| 467 |
|
*/ |
| 468 |
|
public function canCreate($member = null) |
| 469 |
|
{ |
| 470 |
|
// Check parent page |
| 471 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 472 |
|
if ($parent) { |
| 473 |
|
return $parent->canEdit($member); |
| 474 |
|
} |
| 475 |
|
|
| 476 |
|
// Fall back to secure admin permissions |
| 477 |
|
return parent::canCreate($member); |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
/** |
code/model/editableformfields/EditableOption.php 1 location
|
@@ 103-112 (lines=10) @@
|
| 100 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 101 |
|
* @return bool |
| 102 |
|
*/ |
| 103 |
|
public function canCreate($member = null) |
| 104 |
|
{ |
| 105 |
|
// Check parent page |
| 106 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 107 |
|
if($parent) { |
| 108 |
|
return $parent->canEdit($member); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
// Fall back to secure admin permissions |
| 112 |
|
return parent::canCreate($member); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
/** |