diff --git a/integration/laraveladministrator.php b/integration/laraveladministrator.php index e9fc3af..d675d6b 100644 --- a/integration/laraveladministrator.php +++ b/integration/laraveladministrator.php @@ -81,9 +81,8 @@ static function runIntegration() { $iStartedTheSession = true; } - if (!isset($_SESSION['KCFINDER'])) { - $_SESSION['KCFINDER'] = array(); - } + //clean and reset the session variable to read options correctly + $_SESSION['KCFINDER'] = array(); //if this is a simple true value, user is logged in if ($hasPermission == true) { @@ -112,9 +111,6 @@ static function runIntegration() { } } - else { - $_SESSION['KCFINDER']['disabled'] = true; - } //close the session if I started it if (isset($iStartedTheSession)) {