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/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 |
code/model/recipients/UserDefinedForm_EmailRecipient.php 1 location
|
@@ 280-289 (lines=10) @@
|
| 277 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 278 |
|
* @return bool |
| 279 |
|
*/ |
| 280 |
|
public function canCreate($member = null) { |
| 281 |
|
// Check parent page |
| 282 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 283 |
|
if($parent) { |
| 284 |
|
return $parent->canEdit($member); |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
// Fall back to secure admin permissions |
| 288 |
|
return parent::canCreate($member); |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
/** |
| 292 |
|
* Helper method to check the parent for this object |
code/model/editableformfields/EditableFormField.php 1 location
|
@@ 397-406 (lines=10) @@
|
| 394 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 395 |
|
* @return bool |
| 396 |
|
*/ |
| 397 |
|
public function canCreate($member = null) { |
| 398 |
|
// Check parent page |
| 399 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 400 |
|
if($parent) { |
| 401 |
|
return $parent->canEdit($member); |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
// Fall back to secure admin permissions |
| 405 |
|
return parent::canCreate($member); |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
/** |
| 409 |
|
* Helper method to check the parent for this object |
code/model/editableformfields/EditableOption.php 1 location
|
@@ 92-101 (lines=10) @@
|
| 89 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 90 |
|
* @return bool |
| 91 |
|
*/ |
| 92 |
|
public function canCreate($member = null) { |
| 93 |
|
// Check parent page |
| 94 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 95 |
|
if($parent) { |
| 96 |
|
return $parent->canEdit($member); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
// Fall back to secure admin permissions |
| 100 |
|
return parent::canCreate($member); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
/** |
| 104 |
|
* Helper method to check the parent for this object |