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/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_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
|
@@ 409-418 (lines=10) @@
|
406 |
|
* @param array $context Virtual parameter to allow context to be passed in to check |
407 |
|
* @return bool |
408 |
|
*/ |
409 |
|
public function canCreate($member = null) { |
410 |
|
// Check parent page |
411 |
|
$parent = $this->getCanCreateContext(func_get_args()); |
412 |
|
if($parent) { |
413 |
|
return $parent->canEdit($member); |
414 |
|
} |
415 |
|
|
416 |
|
// Fall back to secure admin permissions |
417 |
|
return parent::canCreate($member); |
418 |
|
} |
419 |
|
|
420 |
|
/** |
421 |
|
* Helper method to check the parent for this object |