application: Show a more helpful message when viewing a deleted entry

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-03-29 20:57:36 +02:00
committed by Alexander Nicolaysen Sørnes
parent a5d893bb34
commit 5289fff28c
2 changed files with 8 additions and 1 deletions

View File

@@ -742,7 +742,14 @@ class Application {
{
/* is this user supposed to view this version? */
if(!$_SESSION['current']->canViewApplication($this))
objectManager::error_exit("You do not have permission to view this entry");
{
$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);
}
// cat display
$oCategory = new Category($this->iCatId);

0
tables/create_tables Normal file → Executable file
View File