application: Show a more helpful message when viewing a deleted entry
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
a5d893bb34
commit
5289fff28c
@@ -742,7 +742,14 @@ class Application {
|
|||||||
{
|
{
|
||||||
/* is this user supposed to view this version? */
|
/* is this user supposed to view this version? */
|
||||||
if(!$_SESSION['current']->canViewApplication($this))
|
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
|
// cat display
|
||||||
$oCategory = new Category($this->iCatId);
|
$oCategory = new Category($this->iCatId);
|
||||||
|
|||||||
0
tables/create_tables
Normal file → Executable file
0
tables/create_tables
Normal file → Executable file
Reference in New Issue
Block a user