| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class SiteTreeTest_AdminDeniedExtension extends DataExtension implements TestOnly |
||
| 12 | { |
||
| 13 | public function canCreate($member) |
||
| 14 | { |
||
| 15 | return false; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function canEdit($member) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function canDelete($member) |
||
| 24 | { |
||
| 25 | return false; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function canAddChildren() |
||
| 29 | { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function canView() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |