Skip to content

Commit

Permalink
Initialize backend user for TSFE on Symfony dispatch too
Browse files Browse the repository at this point in the history
  • Loading branch information
QuingKhaos committed May 12, 2016
1 parent 12edc0e commit 60b3260
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

0.3.6
=====

* Initialize backend user for TSFE on Symfony dispatch too

0.3.5
=====

Expand Down
7 changes: 4 additions & 3 deletions src/Kernel/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
*/
abstract class Kernel extends BaseKernel
{
const VERSION = '0.3.5';
const VERSION_ID = '00305';
const VERSION = '0.3.6';
const VERSION_ID = '00306';
const MAJOR_VERSION = '0';
const MINOR_VERSION = '3';
const RELEASE_VERSION = '5';
const RELEASE_VERSION = '6';
const EXTRA_VERSION = '';

/**
Expand Down Expand Up @@ -172,6 +172,7 @@ private function initTsfe(Request $request)

// Initialize FE User.
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['BE_USER'] = $GLOBALS['TSFE']->initializeBackendUser();

// Important: no Cache for Ajax stuff
$GLOBALS['TSFE']->set_no_cache();
Expand Down

0 comments on commit 60b3260

Please sign in to comment.