File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1616namespace CustomerManagementFrameworkBundle \Controller \Admin ;
1717
1818use CustomerManagementFrameworkBundle \GDPR \DataProvider \Customers ;
19+ use Pimcore \Controller \KernelControllerEventInterface ;
1920use Pimcore \Model \DataObject \AbstractObject ;
2021use Symfony \Component \HttpFoundation \Request ;
22+ use Symfony \Component \HttpKernel \Event \ControllerEvent ;
2123use Symfony \Component \Routing \Annotation \Route ;
2224
2325/**
2426 * Class DataObjectController
2527 *
2628 * @Route("/gdpr-data")
2729 */
28- class GDPRDataController extends \Pimcore \Bundle \AdminBundle \Controller \AdminController
30+ class GDPRDataController extends \Pimcore \Bundle \AdminBundle \Controller \AdminController implements KernelControllerEventInterface
2931{
32+ public function onKernelControllerEvent (ControllerEvent $ event ): void
33+ {
34+ $ this ->checkPermission ('gdpr_data_extractor ' );
35+ }
36+
3037 /**
3138 * @param Request $request
3239 * @param Customers $service
You can’t perform that action at this time.
0 commit comments