Jump to content

Recommended Posts

Posted

Hello,

I have a need, that the pagepath-history module should be accessible for a certain editor role (the output like under "settings"-tab › " What other URLs redirect to this page?" @page-edit). 
Is there a way to achieve this for core modules? E.g. add permissions for a module via hooks?

Posted

The output of the path history on the settings-tab is only visible to superusers. However, you can access the path history of a page through the API. The module has no access restrictions. You may want to output the information somewhere else.

$modules->get('PagePathHistory')->getPathHistory($page);

Just in case, if you need to access a module with access restriction:

$modules->getModule('ModuleWithRequiredPermission', ['noPermissionCheck' => true]);

 

  • Like 4
Posted

Hello kixe,
I guess it's a good idea that the pph-module is working silently in the background for non-super-users. And your examples are good to know and helpful.
Thank you for your instant reply!

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...