diff --git a/public_html/deployment/index.php b/public_html/deployment/index.php index 8dc4e61393400a55bdf3a9678f58aa7ae209b9e4..b57dfd060ea75ad6349db1ab821b0f8fbb4c0172 100644 --- a/public_html/deployment/index.php +++ b/public_html/deployment/index.php @@ -66,6 +66,11 @@ $sTopAction=getAction(); // ------ action $oUser=new user(); +if (isset($aConfig["auth"]['forceuser']) && $aConfig["auth"]['forceuser']){ + $oCLog->add("Found config -> auth -> forceuser: using fake identity [".$aConfig["auth"]['forceuser'].']', "warning"); + $oUser->setUser($aConfig["auth"]['forceuser']); +} + if ($oUser->hasPermission('page_'.$sAction)){ $sActionFile = __DIR__ . '/pages/act_' . $sAction . ".php";