Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions src/bundle/EventSubscriber/PerformAccessCheckSubscriber.php

This file was deleted.

4 changes: 0 additions & 4 deletions src/bundle/Resources/config/services/events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ services:
tags:
- { name: kernel.event_subscriber }

Ibexa\Bundle\AdminUi\EventSubscriber\PerformAccessCheckSubscriber:
tags:
- { name: kernel.event_subscriber }

Ibexa\AdminUi\EventListener\RequestListener:
arguments:
- '%ibexa.site_access.groups_by_site_access%'
Expand Down
9 changes: 4 additions & 5 deletions src/contracts/Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
namespace Ibexa\Contracts\AdminUi\Controller;

use Ibexa\Contracts\Core\Repository\Values\Content\Location;
use Ibexa\Contracts\User\Controller\AuthenticatedRememberedCheckTrait;
use Ibexa\Contracts\User\Controller\RestrictedControllerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;

abstract class Controller extends AbstractController
abstract class Controller extends AbstractController implements RestrictedControllerInterface
{
public function performAccessCheck(): void
{
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
}
use AuthenticatedRememberedCheckTrait;

public function redirectToLocation(Location $location, string $uriFragment = ''): RedirectResponse
{
Expand Down
Loading