Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dfranek opened this issue Apr 8, 2020 · 0 comments
Open

Comments

@dfranek
Copy link

dfranek commented Apr 8, 2020

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;

bednee added a commit that referenced this issue Apr 12, 2020
#99 - missing use statement fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant