[BUGFIX] Initialize AdminPanel only if enabled by user 77/57077/3
authorSusanne Moog <susanne.moog@typo3.org>
Mon, 28 May 2018 20:29:19 +0000 (22:29 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 29 May 2018 23:16:31 +0000 (01:16 +0200)
commit40d0c292659906c18dc1b047aa0b44b4a05c43bb
treea4b8d04d1e531dbc299cb8a863f4b44c0d5c03c5
parent629bd4cc5041ad7fe2164c84b4fd906e5c6f451f
[BUGFIX] Initialize AdminPanel only if enabled by user

The admin panel can be disabled via the frontend UI by
click. When the admin panel is disabled the initialize
methods should not be called. This has been fixed.

Resolves: #85104
Releases: master
Change-Id: I966b5887b03b4fb8d3f63e9556b00a37384f9dfc
Reviewed-on: https://review.typo3.org/57077
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/adminpanel/Classes/Middleware/AdminPanelInitiator.php
typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php [new file with mode: 0644]