Commit 6db43aa0 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[BUGFIX] Fix application type check in CategoryPermissionsAspect

Resolves: #94678
Related: #92953
Releases: master
Change-Id: I33073717590a8561c9c5cfe4a1d76bfc627ff949
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70164

Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 0d2cd6c2
...@@ -61,7 +61,7 @@ final class CategoryPermissionsAspect ...@@ -61,7 +61,7 @@ final class CategoryPermissionsAspect
{ {
// Only evaluate this in the backend // Only evaluate this in the backend
if (!($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface if (!($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface
|| ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend() || !ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()
) { ) {
return; return;
} }
......
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