In Drupal 6, I would like the "administer>content management" menu to not include the "post-settings" item for a role while still displaying other items on the administer navigation menu.
Is there a way to configure this? It does not appear as a distinct user permission setting.
Any help would be appreciated. Thanks,
Izzy
Comments
Comment #1
vm commentedinvestigate modules like menu_access.module. Follow up on this question is better suited in the forums.
Comment #2
izmeez commentedThanks for the reply. Is there some way I can move this discussion to the forums?
I see that Drupal 7 is looking to move the items away from the post settings page. I was wondering if there is a simple way to control access to it on the administer menu for Drupal 6. I have been reluctant to use other node access programs since I am experimenting with OG, but maybe menu access will be okay. I have just taken a look at the menu_access module page and I will explore it further.
Thanks,
Izzy
Comment #3
vm commentedthere is no way to move an issue to the forums, sorry.
I'd test the module in a test environment of my production site prior to deploying in the event that you are reluctant.
There is no way that I can find to restrict of give access to menu items in core. Unless I am missing something glaring (it's happened before).
Comment #5
mairav commented@izmeez I was facing the same problem as you. I don't want the "Post settings" item shown in the admin menu for certain roles, so I digg in node module and adit two lines of code that made what I want.
Open the node.module file placed in modules/node
In the following code I added the bold part (line 1121 more or less):
In the line 1429 aprox. I changed the "access arguments text" from "administer nodes" to "administer post settings" and the code block is now like this:
I know we shouldn't touch core modules, but I can't let my customer see this settings. I hope it can help someone.
Comment #6
langworthy commentedI solved this by adding the following to a custom site module.