Remove unecessary case

This commit is contained in:
jf-cbd
2026-03-10 10:35:40 +01:00
parent 8b4de6a12b
commit a68b165498

View File

@@ -103,7 +103,7 @@ if ($sTargetPage === false) {
require_once(APPROOT.'/application/startup.inc.php');
$aModuleDelegatedAuthenticationEndpoints = GetModuleDelegatedAuthenticationEndpoints($sModule);
if (is_null($aModuleDelegatedAuthenticationEndpoints) || !in_array($sPage, $aModuleDelegatedAuthenticationEndpoints)) {
if (is_null($aModuleDelegatedAuthenticationEndpoints)) {
$bForceLoginWhenNoDelegatedAuthenticationEndpoints = MetaModel::GetConfig()->Get('security.force_login_when_no_delegated_authentication_endpoints_list');
if ($bForceLoginWhenNoDelegatedAuthenticationEndpoints) {
LoginWebPage::DoLoginEx();