code/model/EditableCustomRule.php 1 location
|
@@ 104-114 (lines=11) @@
|
| 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, $context = array()) |
| 105 |
|
{ |
| 106 |
|
// Check parent page |
| 107 |
|
$parent = $this->getCanCreateContext($context); |
| 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 |
|
/** |
| 117 |
|
* Helper method to check the parent for this object |
code/model/editableformfields/EditableFormField.php 1 location
|
@@ 453-463 (lines=11) @@
|
| 450 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 451 |
|
* @return bool |
| 452 |
|
*/ |
| 453 |
|
public function canCreate($member = null, $context = array()) |
| 454 |
|
{ |
| 455 |
|
// Check parent page |
| 456 |
|
$parent = $this->getCanCreateContext($context); |
| 457 |
|
if ($parent) { |
| 458 |
|
return $parent->canEdit($member); |
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
// Fall back to secure admin permissions |
| 462 |
|
return parent::canCreate($member); |
| 463 |
|
} |
| 464 |
|
|
| 465 |
|
/** |
| 466 |
|
* Helper method to check the parent for this object |
code/model/editableformfields/EditableOption.php 1 location
|
@@ 104-114 (lines=11) @@
|
| 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, $context = array()) |
| 105 |
|
{ |
| 106 |
|
// Check parent page |
| 107 |
|
$parent = $this->getCanCreateContext($context); |
| 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 |
|
/** |
| 117 |
|
* Helper method to check the parent for this object |
code/model/recipients/UserDefinedForm_EmailRecipient.php 1 location
|
@@ 327-337 (lines=11) @@
|
| 324 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 325 |
|
* @return bool |
| 326 |
|
*/ |
| 327 |
|
public function canCreate($member = null, $context = array()) |
| 328 |
|
{ |
| 329 |
|
// Check parent page |
| 330 |
|
$parent = $this->getCanCreateContext($context); |
| 331 |
|
if ($parent) { |
| 332 |
|
return $parent->canEdit($member); |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
// Fall back to secure admin permissions |
| 336 |
|
return parent::canCreate($member); |
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
/** |
| 340 |
|
* Helper method to check the parent for this object |
code/model/recipients/UserDefinedForm_EmailRecipientCondition.php 1 location
|
@@ 70-80 (lines=11) @@
|
| 67 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 68 |
|
* @return bool |
| 69 |
|
*/ |
| 70 |
|
public function canCreate($member = null, $context = array()) |
| 71 |
|
{ |
| 72 |
|
// Check parent page |
| 73 |
|
$parent = $this->getCanCreateContext($context); |
| 74 |
|
if ($parent) { |
| 75 |
|
return $parent->canEdit($member); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// Fall back to secure admin permissions |
| 79 |
|
return parent::canCreate($member, $context); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* Helper method to check the parent for this object |