code/controllers/CMSMain.php 1 location
|
@@ 1141-1141 (lines=1) @@
|
| 1138 |
|
if($record && !$record->canUnpublish()) { |
| 1139 |
|
return Security::permissionFailure($this); |
| 1140 |
|
} |
| 1141 |
|
if(!$record || !$record->ID) { |
| 1142 |
|
throw new SS_HTTPResponse_Exception("Bad record ID #" . (int)$data['ID'], 404); |
| 1143 |
|
} |
| 1144 |
|
|
code/controllers/AssetAdmin.php 1 location
|
@@ 324-326 (lines=3) @@
|
| 321 |
|
if($record && !$record->canDelete()) { |
| 322 |
|
return Security::permissionFailure(); |
| 323 |
|
} |
| 324 |
|
if(!$record || !$record->ID) { |
| 325 |
|
throw new SS_HTTPResponse_Exception("Bad record ID #" . (int)$data['ID'], 404); |
| 326 |
|
} |
| 327 |
|
$parentID = $record->ParentID; |
| 328 |
|
$record->delete(); |
| 329 |
|
$this->setCurrentPageID(null); |