Skip to content

Commit

Permalink
add permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 committed Jan 8, 2024
1 parent 2878b3b commit d224c20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

namespace Pimcore\Bundle\EcommerceFrameworkBundle\Controller;

use Pimcore\Controller\KernelControllerEventInterface;
use Pimcore\Controller\UserAwareController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\ControllerEvent;
Expand All @@ -29,7 +30,7 @@
*
* @internal
*/
class ConfigController extends UserAwareController
class ConfigController extends UserAwareController implements KernelControllerEventInterface
{
/**
* ConfigController constructor.
Expand Down
3 changes: 2 additions & 1 deletion src/Controller/FindologicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace Pimcore\Bundle\EcommerceFrameworkBundle\Controller;

use Pimcore\Controller\FrontendController;
use Pimcore\Controller\KernelControllerEventInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\ControllerEvent;
Expand All @@ -28,7 +29,7 @@
*
* @internal
*/
class FindologicController extends FrontendController
class FindologicController extends FrontendController implements KernelControllerEventInterface
{
public function onKernelControllerEvent(ControllerEvent $event): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Pimcore\Bundle\EcommerceFrameworkBundle\Event\AdminEvents;
use Pimcore\Bundle\EcommerceFrameworkBundle\Factory;
use Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\ProductList\ProductListInterface;
use Pimcore\Controller\KernelControllerEventInterface;
use Pimcore\Controller\Traits\JsonHelperTrait;
use Pimcore\Controller\UserAwareController;
use Symfony\Component\EventDispatcher\GenericEvent;
Expand All @@ -36,7 +37,7 @@
*
* @internal
*/
class IndexController extends UserAwareController
class IndexController extends UserAwareController implements KernelControllerEventInterface
{
use JsonHelperTrait;

Expand Down

0 comments on commit d224c20

Please sign in to comment.