Skip to content
Snippets Groups Projects
Commit b7919e2a authored by hahn's avatar hahn
Browse files

for dev-env: force a user without login

parent 8ff0116e
No related branches found
No related tags found
1 merge request!195534 add docker
...@@ -66,6 +66,11 @@ $sTopAction=getAction(); ...@@ -66,6 +66,11 @@ $sTopAction=getAction();
// ------ action // ------ action
$oUser=new user(); $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)){ if ($oUser->hasPermission('page_'.$sAction)){
$sActionFile = __DIR__ . '/pages/act_' . $sAction . ".php"; $sActionFile = __DIR__ . '/pages/act_' . $sAction . ".php";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment