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 16
16
namespace CustomerManagementFrameworkBundle \Controller \Admin ;
17
17
18
18
use CustomerManagementFrameworkBundle \GDPR \DataProvider \Customers ;
19
+ use Pimcore \Controller \KernelControllerEventInterface ;
19
20
use Pimcore \Model \DataObject \AbstractObject ;
20
21
use Symfony \Component \HttpFoundation \Request ;
22
+ use Symfony \Component \HttpKernel \Event \ControllerEvent ;
21
23
use Symfony \Component \Routing \Annotation \Route ;
22
24
23
25
/**
24
26
* Class DataObjectController
25
27
*
26
28
* @Route("/gdpr-data")
27
29
*/
28
- class GDPRDataController extends \Pimcore \Bundle \AdminBundle \Controller \AdminController
30
+ class GDPRDataController extends \Pimcore \Bundle \AdminBundle \Controller \AdminController implements KernelControllerEventInterface
29
31
{
32
+ public function onKernelControllerEvent (ControllerEvent $ event ): void
33
+ {
34
+ $ this ->checkPermission ('gdpr_data_extractor ' );
35
+ }
36
+
30
37
/**
31
38
* @param Request $request
32
39
* @param Customers $service
You can’t perform that action at this time.
0 commit comments