code/controllers/CMSMain.php 1 location
|
@@ 1126-1126 (lines=1) @@
|
| 1123 |
|
if($record && !$record->canUnpublish()) { |
| 1124 |
|
return Security::permissionFailure($this); |
| 1125 |
|
} |
| 1126 |
|
if(!$record || !$record->ID) { |
| 1127 |
|
throw new SS_HTTPResponse_Exception("Bad record ID #" . (int)$data['ID'], 404); |
| 1128 |
|
} |
| 1129 |
|
|
code/controllers/AssetAdmin.php 1 location
|
@@ 342-344 (lines=3) @@
|
| 339 |
|
if($record && !$record->canDelete()) { |
| 340 |
|
return Security::permissionFailure(); |
| 341 |
|
} |
| 342 |
|
if(!$record || !$record->ID) { |
| 343 |
|
throw new SS_HTTPResponse_Exception("Bad record ID #" . (int)$data['ID'], 404); |
| 344 |
|
} |
| 345 |
|
$parentID = $record->ParentID; |
| 346 |
|
$record->delete(); |
| 347 |
|
$this->setCurrentPageID(null); |