Commit 16f064e5 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix broken session handling

parent 3ab75781
......@@ -63,7 +63,7 @@ abstract class AbstractController extends ActionController {
* @param BackendUserAuthentication $backendUserAuthentication
*/
public function injectBackendUserAuthentication(BackendUserAuthentication $backendUserAuthentication): void {
$this->backendUserAuthentication = $backendUserAuthentication;
$this->backendUserAuthentication = $GLOBALS['BE_USER'];
}
/**
......@@ -100,7 +100,7 @@ abstract class AbstractController extends ActionController {
* @param $data
*/
protected function writeToSession(string $key, $data): void {
$this->backendUserAuthentication->setSessionData(self::sessionKey . '_' . $key, $data);
$this->backendUserAuthentication->setAndSaveSessionData(self::sessionKey . '_' . $key, $data);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment