version: Show a more helpful message when viewing a deleted entry
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
5289fff28c
commit
0001b42f66
@@ -811,7 +811,14 @@ class version {
|
|||||||
{
|
{
|
||||||
/* is this user supposed to view this version? */
|
/* is this user supposed to view this version? */
|
||||||
if(!$_SESSION['current']->canViewVersion($this))
|
if(!$_SESSION['current']->canViewVersion($this))
|
||||||
util_show_error_page_and_exit("Something went wrong with the application or version id");
|
{
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
|
||||||
$iTestingId = $aVars['iTestingId'] ? $aVars['iTestingId'] : 0;
|
$iTestingId = $aVars['iTestingId'] ? $aVars['iTestingId'] : 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user