code/model/EditableCustomRule.php 1 location
|
@@ 94-103 (lines=10) @@
|
| 91 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 92 |
|
* @return bool |
| 93 |
|
*/ |
| 94 |
|
public function canCreate($member = null) { |
| 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/editableformfields/EditableFormField.php 1 location
|
@@ 374-383 (lines=10) @@
|
| 371 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 372 |
|
* @return bool |
| 373 |
|
*/ |
| 374 |
|
public function canCreate($member = null) { |
| 375 |
|
// Check parent page |
| 376 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 377 |
|
if($parent) { |
| 378 |
|
return $parent->canEdit($member); |
| 379 |
|
} |
| 380 |
|
|
| 381 |
|
// Fall back to secure admin permissions |
| 382 |
|
return parent::canCreate($member); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
/** |
| 386 |
|
* Helper method to check the parent for this object |
code/model/editableformfields/EditableOption.php 1 location
|
@@ 71-80 (lines=10) @@
|
| 68 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 69 |
|
* @return bool |
| 70 |
|
*/ |
| 71 |
|
public function canCreate($member = null) { |
| 72 |
|
// Check parent page |
| 73 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 74 |
|
if($parent) { |
| 75 |
|
return $parent->canEdit($member); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// Fall back to secure admin permissions |
| 79 |
|
return parent::canCreate($member); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* Helper method to check the parent for this object |
code/model/recipients/UserDefinedForm_EmailRecipient.php 1 location
|
@@ 274-283 (lines=10) @@
|
| 271 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 272 |
|
* @return bool |
| 273 |
|
*/ |
| 274 |
|
public function canCreate($member = null) { |
| 275 |
|
// Check parent page |
| 276 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 277 |
|
if($parent) { |
| 278 |
|
return $parent->canEdit($member); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
// Fall back to secure admin permissions |
| 282 |
|
return parent::canCreate($member); |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
/** |
| 286 |
|
* Helper method to check the parent for this object |
code/model/recipients/UserDefinedForm_EmailRecipientCondition.php 1 location
|
@@ 64-73 (lines=10) @@
|
| 61 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 62 |
|
* @return bool |
| 63 |
|
*/ |
| 64 |
|
public function canCreate($member = null) { |
| 65 |
|
// Check parent page |
| 66 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 67 |
|
if($parent) { |
| 68 |
|
return $parent->canEdit($member); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
// Fall back to secure admin permissions |
| 72 |
|
return parent::canCreate($member); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
/** |
| 76 |
|
* Helper method to check the parent for this object |