Skip to content

Commit

Permalink
Fix invalid director error after finishing web install wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Dec 14, 2021
1 parent 50ccae4 commit 92d661a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/Modules/BaculumWebPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function onPreInit($param) {
if (!$this->IsPostBack && !$this->IsCallBack) {
$this->postInitActions();
$this->getModule('api')->initSessionCache(true);
if (!key_exists('is_user_vars', $_SESSION) || $_SESSION['is_user_vars'] === false) {
if ($this->User->getIsGuest() === false && (!key_exists('is_user_vars', $_SESSION) || $_SESSION['is_user_vars'] === false)) {
$this->resetSessionUserVars(); // reset is required for init session vars
$this->setSessionUserVars();
}
Expand Down

0 comments on commit 92d661a

Please sign in to comment.