sz-ligatur Posted July 30, 2020 Share Posted July 30, 2020 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? Link to comment Share on other sites More sharing options...
kixe Posted July 30, 2020 Share Posted July 30, 2020 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]); 4 Link to comment Share on other sites More sharing options...
sz-ligatur Posted July 30, 2020 Author Share Posted July 30, 2020 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! 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now