Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
menu system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jun 2007 at 13:42 UTC
Updated:
8 Dec 2025 at 18:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedmoving items between menus is being handled here:
Menu system UI problems - moving items between menus
http://drupal.org/node/151055
So, we'll make this issue for the idea of adding an additional permission so that users can have access to the menu_otf form in the node form with having the full 'administer menus' permission.
Comment #2
catchbumping a version since the main bug has been fixed.
Comment #3
jody lynnI agree that there could be a separate permission to let users add content to the menu without fully administering the menu.
Comment #4
jody lynnSimple patch to add a second permission to menu module: permission to access the menu settings fieldset in node forms.
Comment #5
pwolanin commented"Manage menu items " shoudl be "Manage menu links "
Comment #6
pwolanin commentedshould probably also be an OR between the two permissions for access to the form element.
Comment #7
jody lynnOk, changes made.
Comment #8
kleinmp commentedThe patch works nicely for me.
Comment #9
webchickI'm on crack. Are you, too?
I'd prefer we didn't use the word 'node' in user-facing text (yes, I know about 'administer nodes' and it can bite me ;))
How about more explicit? "place content into menus" or something?
This review is powered by Dreditor.
Comment #10
jody lynnChanged the perm description to 'place content into menus', that seems fine. It's hard to succinctly say 'Use the options in the menu settings fieldset which appears on node add/edit forms in order to add, edit or delete that node's menu settings.' but I think this suffices..
Comment #11
webchickSorry, this will teach me to try and review patches at ice cream sprints.
I meant something more like:
We don't use "node" in user-facing text.
I'm tagging "needs usability review" in the hope that someone can come up with something better than the above.
I'm on crack. Are you, too?
Comment #12
sunThis issue slightly overlaps with #38777: Menu OTF needs its own permission
Comment #13
jody lynnChanged the text to the way webchick put it.
Comment #14
heather commentedThis looks like a handy improvement.
However, could the text be misleading? We're not adding "content", like an image, or intro text into a menu. We're adding links.
Patch #13: "Access menu controls on content forms to place content into menus"
Patch attached: "Access menu controls on content forms to place links to content into menus"
Comment #15
heather commentedChanging to needs review, and adding tag.
I looked over #38777: Menu OTF needs its own permission and this looks like an isolated solution, but sun suggests there is a larger problem. If the larger problem isn't solved this would be an improvement for finer grained menu permissions?
Comment #16
pwolanin commented'Link to content in menus' is really more like 'Add links to menus while editing content', but in any case it's never going to make sense without the description. There's no real need to bikeshed the text.
Comment #17
pwolanin commentedI'm really not sure why usability is relevant here?
Comment #19
pwolanin commentedThis is a really simple patch and would be a big usability improvement - let's get it re-rolled.
Comment #20
jody lynnHere's a reroll, with permission description update to 'Add links to content in menus while editing content.'
Comment #21
pwolanin commentedpatch applies cleanly, works as advertised.
Comment #22
sunThis doesn't really match up. The title says "Add", the internal permission says "place".
According to the code, this permission not only allows you to add links for nodes, but also edit them, and potentially delete them.
I'd suggest to name at least the internal permission more precisely, perhaps "manage links" or "edit links".
I'm on crack. Are you, too?
Comment #23
jody lynnIt's hard to put it concisely. How's this one?
Comment #24
pwolanin commentedYeah, hard to make it short but coherent.
Do you use "manage" elsewhere?
I might almost call this "administer links to content"
Comment #25
MichaelCole commented#23: menu.patch queued for re-testing.
Comment #26
pwolanin commentedHere's some alternative wording.
Comment #27
jody lynnI'm fine with that new wording.
Comment #28
forngren commentedMarked #38777: Menu OTF needs its own permission as a duplicate of this issue.
This wording makes sense to me, as a non-native English-speaker. RTBC.
Comment #29
sunI don't really care about the human-readable title; but the internal permission name has a completely different meaning.
Case error in function name.
Powered by Dreditor.
Comment #30
forngren commentedHow about this wording?
Comment #32
pwolanin commentedThere is no such thing as "menu item" - use "menu link"
Comment #33
forngren commentedAlright, trying again.
Comment #34
forngren commentedIs there still a chance of this getting into 7.x? If so, I'll update the patch.
Comment #35
forngren commented#33: 154471.patch queued for re-testing.
Comment #37
Bojhan commentedSounds oke?
Comment #38
ralphb commentedWhy has this been abandoned? The new permission is really missing from 7.x to make content creation (e.g., Wiki-style pages) for normal users feasible.
Comment #39
xanoMarking this a feature request, since everything works as designed, even if it's risky to let end-users manage menus.
This patch takes a new approach, as discussed with @pwolanin on IRC. Instead of focussing on nodes, we expand the menu system with content-specific permissions for menu links. By separating permissions for config and content, we can ensure that end users can manage links, which are content, without being able to (accidentally) change menu configuration. The new access controller has full test coverage, but not all content usages of the old
administer menupermission have been converted yet, and neither have the corresponding tests.Some issues we need to decide on:
MenuLinkContentprovides similar behavior, but stores the overrides in entity storage rather than config.administer menu: We can keep it as a bypass permission, which ensures continuity, but requires complex access checks. We can also deprecate it, which means we keep it around for contributed modules and existing site configurations to use, but we take the permission away from all roles that have it, and replace it with all available new permissions. This requires configuration permissions to be converted in the same patch. A third alternative is to keep the permission for config only, and just add the new content permissions to all roles that have the old permission.MenuLinkContentAccessControlHandleruses theadminister menupermission to check "view" access. This was added in #2558905-15: Content translation module - Information disclosure by insufficient access checking, but the reason for this addition is not clear to me, as well as alternative solutions to the problem this check solves.Comment #55
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #56
smustgrave commentedWanted to bump 1 more time if summary could be cleaned up.