Commit ee5044e8 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Invalid SIP bei Save: 1013

Session.php: If QFQ called by api, there is no T3 environment. Therefore there is no logged in FE User. We should keep the found SIP cache and take them (no flush, due to unknown logged in user).
parent 25fdfea7
......@@ -38,9 +38,16 @@ class Session {
*/
private static function checkFeUserUid() {
$feUidLoggedIn = isset($GLOBALS["TSFE"]->fe_user->user["uid"]) ? $GLOBALS["TSFE"]->fe_user->user["uid"] : false;
$feUidSession = Session::get(SESSION_FE_USER_UID);
if (isset($GLOBALS["TSFE"])) {
$feUidLoggedIn = isset($GLOBALS["TSFE"]->fe_user->user["uid"]) ? $GLOBALS["TSFE"]->fe_user->user["uid"] : false;
} else {
// If we are called through API there is no T3 FE User logged in. Fake this test.
$feUidLoggedIn = $feUidSession;
}
if ($feUidLoggedIn !== $feUidSession) {
// destroy existing session store
Session::clear();
......
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