objectManager: Don't attempt to show deleted entries
This commit is contained in:
@@ -745,9 +745,6 @@ class Application {
|
||||
{
|
||||
$sError = 'You do not have permission to view this entry';
|
||||
|
||||
if($this->objectGetState() == 'deleted')
|
||||
$sError = 'This entry has been deleted; it\'s contents may have been moved to another entry';
|
||||
|
||||
objectManager::error_exit($sError);
|
||||
}
|
||||
|
||||
|
||||
@@ -1303,6 +1303,10 @@ class ObjectManager
|
||||
if(!$oObject->objectGetId())
|
||||
$this->error_exit("Entry not found (class: {$this->sClass}, id: {$this->iId})");
|
||||
|
||||
/* Check if the entry has been deleted */
|
||||
if($oObject->objectGetState() == 'deleted')
|
||||
$this->error_exit("This entry has been deleted (class: {$this->sClass}, id: {$this->iId})<br />Its content may have been moved to another entry");
|
||||
|
||||
$aVars = $this->get_custom_vars($aClean, "view");
|
||||
|
||||
echo "<br />";
|
||||
|
||||
Reference in New Issue
Block a user