File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2020use CustomerManagementFrameworkBundle \DuplicatesIndex \DuplicatesIndexInterface ;
2121use Symfony \Component \HttpFoundation \JsonResponse ;
2222use Symfony \Component \HttpFoundation \Request ;
23+ use Symfony \Component \HttpKernel \Event \ControllerEvent ;
2324use Symfony \Component \Routing \Annotation \Route ;
2425
2526/**
@@ -32,6 +33,12 @@ public function init()
3233 \Pimcore \Model \DataObject \AbstractObject::setHideUnpublished (true );
3334 }
3435
36+ public function onKernelControllerEvent (ControllerEvent $ event ): void
37+ {
38+ parent ::onKernelControllerEvent ($ event );
39+ $ this ->checkPermission ('plugin_cmf_perm_customerview ' );
40+ }
41+
3542 /**
3643 * @param Request $request
3744 * @param DuplicatesIndexInterface $duplicatesIndex
You can’t perform that action at this time.
0 commit comments