bednee / cooluri

GIT repository for TYPO3 extension CoolUri
7 stars 12 forks source link

missing use statement in \Bednarik\Cooluri\Integration\CoolPageResolver #99

Open dfranek opened 4 years ago

dfranek commented 4 years ago

Hi,

you have a missing use statement in \Bednarik\Cooluri\Integration\CoolPageResolver. When a backend user is viewing a page in the frontend, that he doesn't have access an exception is thrown because of that.

The error is in this line: $this->setBackendUserAspect(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(Context::class), null); (line 66 in version 1.2.2)

It can be resolved by adding this statement below the namespace: use TYPO3\CMS\Core\Context\Context;