code/Controllers/AssetAdmin.php 1 location
|
@@ 395-397 (lines=3) @@
|
| 392 |
|
if($record && !$record->canDelete()) { |
| 393 |
|
return Security::permissionFailure(); |
| 394 |
|
} |
| 395 |
|
if(!$record || !$record->ID) { |
| 396 |
|
throw new SS_HTTPResponse_Exception("Bad record ID #" . (int)$data['ID'], 404); |
| 397 |
|
} |
| 398 |
|
$parentID = $record->ParentID; |
| 399 |
|
$record->delete(); |
| 400 |
|
$this->setCurrentPageID(null); |
code/Controllers/CMSMain.php 1 location
|
@@ 1220-1220 (lines=1) @@
|
| 1217 |
|
if($record && !$record->canUnpublish()) { |
| 1218 |
|
return Security::permissionFailure($this); |
| 1219 |
|
} |
| 1220 |
|
if(!$record || !$record->ID) { |
| 1221 |
|
throw new SS_HTTPResponse_Exception("Bad record ID #" . (int)$data['ID'], 404); |
| 1222 |
|
} |
| 1223 |
|
|