| @@ 352-358 (lines=7) @@ | ||
| 349 | * |
|
| 350 | * @return bool |
|
| 351 | */ |
|
| 352 | public function canDelete($member = null) { |
|
| 353 | if($this->Parent()) { |
|
| 354 | return $this->Parent()->canEdit($member) && !$this->isReadonly(); |
|
| 355 | } |
|
| 356 | ||
| 357 | return true; |
|
| 358 | } |
|
| 359 | ||
| 360 | /** |
|
| 361 | * Return whether a user can edit this form field |
|
| @@ 366-372 (lines=7) @@ | ||
| 363 | * |
|
| 364 | * @return bool |
|
| 365 | */ |
|
| 366 | public function canEdit($member = null) { |
|
| 367 | if($this->Parent()) { |
|
| 368 | return $this->Parent()->canEdit($member) && !$this->isReadonly(); |
|
| 369 | } |
|
| 370 | ||
| 371 | return true; |
|
| 372 | } |
|
| 373 | ||
| 374 | /** |
|
| 375 | * Publish this Form Field to the live site |
|