🐛 N°2091: Portal: Fix regression introduced in 2.5, better error message when user logged out

This commit is contained in:
Molkobain
2019-03-12 17:08:12 +01:00
parent 94092f445f
commit 912bab5a43

View File

@@ -93,7 +93,7 @@ $oApp->before(function(Symfony\Component\HttpFoundation\Request $oRequest, Silex
$iLogonRes = LoginWebPage::DoLoginEx(PORTAL_ID, false, $iExitMethod);
if( ($iExitMethod === LoginWebPage::EXIT_RETURN) && ($iLogonRes != 0) )
{
die(Dict::S('Portal:ErrorUserLoggedOut'));
$oApp->abort(401);
}
// - User must be associated with a Contact
if (UserRights::GetContactId() == 0)