Skip to content

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

@dfranek

Description

@dfranek

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions