Project:Menu Subtree Permissions
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs work

Issue Summary

I'm currently using this module in a project with the following patches applied:
http://drupal.org/node/196286
http://drupal.org/node/165480

The Problem

Everything appears to work with ACL on the surface and the user is shown the correct section of the menu when editing nodes. After the user places a node in the menu and returns to edit it again, the menu placement options are not shown.

Solution

I have attached a patch that corrected the problem for me. The attached patch as diffed with the latest version in cvs so it includes the two patches that I mentioned above. Keep in mind that we are very short on resources so no thorough tests were made. On the surface I'm not exactly sure what the point of the block of code is that I commented out and why _menu_stp_has_perms_roles is needed. There's nothing to do if it returns true and the routine will drop out later one if the user doesn't have any menu items. But remember, I haven't done any testing beyond confirming it fixed our particular problem.

AttachmentSize
acl_edit.patch3.99 KB