code/model/EditableCustomRule.php 1 location
|
@@ 100-109 (lines=10) @@
|
| 97 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 98 |
|
* @return bool |
| 99 |
|
*/ |
| 100 |
|
public function canCreate($member = null) |
| 101 |
|
{ |
| 102 |
|
// Check parent page |
| 103 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 104 |
|
if ($parent) { |
| 105 |
|
return $parent->canEdit($member); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
// Fall back to secure admin permissions |
| 109 |
|
return parent::canCreate($member); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
/** |
code/model/editableformfields/EditableFormField.php 1 location
|
@@ 426-435 (lines=10) @@
|
| 423 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 424 |
|
* @return bool |
| 425 |
|
*/ |
| 426 |
|
public function canCreate($member = null) |
| 427 |
|
{ |
| 428 |
|
// Check parent page |
| 429 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 430 |
|
if ($parent) { |
| 431 |
|
return $parent->canEdit($member); |
| 432 |
|
} |
| 433 |
|
|
| 434 |
|
// Fall back to secure admin permissions |
| 435 |
|
return parent::canCreate($member); |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
/** |
code/model/editableformfields/EditableOption.php 1 location
|
@@ 99-108 (lines=10) @@
|
| 96 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 97 |
|
* @return bool |
| 98 |
|
*/ |
| 99 |
|
public function canCreate($member = null) |
| 100 |
|
{ |
| 101 |
|
// Check parent page |
| 102 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 103 |
|
if ($parent) { |
| 104 |
|
return $parent->canEdit($member); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
// Fall back to secure admin permissions |
| 108 |
|
return parent::canCreate($member); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
/** |
code/model/recipients/UserDefinedForm_EmailRecipient.php 1 location
|
@@ 286-295 (lines=10) @@
|
| 283 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 284 |
|
* @return bool |
| 285 |
|
*/ |
| 286 |
|
public function canCreate($member = null) |
| 287 |
|
{ |
| 288 |
|
// Check parent page |
| 289 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 290 |
|
if ($parent) { |
| 291 |
|
return $parent->canEdit($member); |
| 292 |
|
} |
| 293 |
|
|
| 294 |
|
// Fall back to secure admin permissions |
| 295 |
|
return parent::canCreate($member); |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
/** |
code/model/recipients/UserDefinedForm_EmailRecipientCondition.php 1 location
|
@@ 66-75 (lines=10) @@
|
| 63 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
| 64 |
|
* @return bool |
| 65 |
|
*/ |
| 66 |
|
public function canCreate($member = null) |
| 67 |
|
{ |
| 68 |
|
// Check parent page |
| 69 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
| 70 |
|
if ($parent) { |
| 71 |
|
return $parent->canEdit($member); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
// Fall back to secure admin permissions |
| 75 |
|
return parent::canCreate($member); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
/** |