| @@ 821-828 (lines=8) @@ | ||
| 818 | return false; |
|
| 819 | } |
|
| 820 | ||
| 821 | public function canEdit($member = null) |
|
| 822 | { |
|
| 823 | if (in_array($this->Status, ['Pending', 'Active'])) { |
|
| 824 | return $this->canView($member); |
|
| 825 | } else { |
|
| 826 | return false; |
|
| 827 | } |
|
| 828 | } |
|
| 829 | ||
| 830 | public function canDelete($member = null) |
|
| 831 | { |
|
| @@ 830-837 (lines=8) @@ | ||
| 827 | } |
|
| 828 | } |
|
| 829 | ||
| 830 | public function canDelete($member = null) |
|
| 831 | { |
|
| 832 | if (in_array($this->Status, ['Pending'])) { |
|
| 833 | ||
| 834 | return $this->canView($member); |
|
| 835 | } else { |
|
| 836 | ||
| 837 | return false; |
|
| 838 | } |
|
| 839 | } |
|
| 840 | } |
|