mirror of
https://github.com/Combodo/iTop.git
synced 2026-09-29 21:09:10 +02:00
N°9711 - Block user from going back to the setup (#944)
This commit is contained in:
@@ -2162,6 +2162,33 @@ JS
|
||||
|
||||
return $aOptionalExtensions;
|
||||
}
|
||||
|
||||
public static function GetBackButtonInfo($sReturnApplication): array
|
||||
{
|
||||
$sButtonUrl = '';
|
||||
$sButtonLabel = '';
|
||||
if ($sReturnApplication !== '') {
|
||||
switch ($sReturnApplication) {
|
||||
case 'itop':
|
||||
$sButtonUrl = utils::GetAbsoluteUrlModulePage('combodo-data-feature-removal', 'index.php');
|
||||
$sButtonLabel = 'Back to application';
|
||||
break;
|
||||
case 'designer':
|
||||
$sButtonUrl = utils::GetAbsoluteUrlModulePage('itsm-designer-connector', 'launch.php');
|
||||
$sButtonLabel = 'Back to Designer';
|
||||
break;
|
||||
case 'hub':
|
||||
$sButtonUrl = utils::GetAbsoluteUrlModulePage('itop-hub-connector', 'launch.php');
|
||||
$sButtonLabel = 'Back to hub';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return [$sButtonLabel, $sButtonUrl];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user