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 |
|
/** |
code/model/recipients/UserDefinedForm_EmailRecipient.php 1 location
|
@@ 308-317 (lines=10) @@
|
305 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
306 |
|
* @return bool |
307 |
|
*/ |
308 |
|
public function canCreate($member = null) |
309 |
|
{ |
310 |
|
// Check parent page |
311 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
312 |
|
if ($parent) { |
313 |
|
return $parent->canEdit($member); |
314 |
|
} |
315 |
|
|
316 |
|
// Fall back to secure admin permissions |
317 |
|
return parent::canCreate($member); |
318 |
|
} |
319 |
|
|
320 |
|
/** |