This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » Access check on own paths

Access check on own paths

Access check on own paths

Tuesday 04 November 2014 3:14:33 pm - 2 replies

Lets say that I have this in my routing.yml:

    path: /hello/world
    defaults: {_controller: MyPathBundle:HelloWorld

How do I define the access rights for this path. Simular to the old way to do it in module.php.

Friday 07 November 2014 3:49:07 pm

Hi Anders

You currently still need to define module permissions in legacy (you may use the legacy bundle feature for that). You can then call securityContext isGranted() method from anywhere. An example can be found in the PreviewController.

Thursday 13 November 2014 9:45:28 am

Thanks for your reply, Jérôme!

How do i define the path, so it will be accessible in eZ Publish admin interface? Do I need to generate the modules.php file, just to get this work? 


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from