Hi,
I have a strange problem which has something to do with permissions: have a role "Content Admin" which has granted all available permission of this module. It can see the navigation-links, secondary-links but not the primary-links. 'Superadmin' can! I don't know why "Content Admin" is not able to see the menu at the frontend (no role does except the superadmin).

Any ideas? I don't think it has something to do with my patch (http://drupal.org/node/435554 #4).
I set view-permissions of all menues and menu-items to all available roles.

CommentFileSizeAuthor
#5 menu_access-443940-5.patch665 bytestchamness

Comments

haggins’s picture

This module killed my whole drupal installation :(
I didn't find any way to get the menu visible so I deinstalled the module and deleted all of its files...but the menues are still not shown. Cleared cache a thousand times, rebuild menues, cleared browser cache...nothing. No way. There are no permissions related to menues. I don't know what to do else. The only way seems to save the content and setup a fresh drupal installation.

emptyvoid’s picture

Sorry to hear you had a problem.. I would always recommend frequent backups when testing modules.

I will attempt to reproduce the nature of your bug.. but generally I haven't experienced this before..

It may be the menu router or menu links tables needed to be rebuilt to reset the security checks to use Drupal's default instead of the custom ones in the module.

i will have to try and reproduce it.

haggins’s picture

Doesn't matter. It was on a testing installation (but with a large number of configurations). It's too long ago for me to reproduce the problem. Sorry!

trentharlem’s picture

I have this same issue. Only Superuser can view links and content. I couldn't get the mod to perform the way listed in the brief Read Me file.

Uninstalling the module does not fix.

tchamness’s picture

Status: Active » Needs review
StatusFileSize
new665 bytes

On my installation this bug was being caused by a problem with the order in which the module calls the _menu_link_translate function. The menu actually was being printed, but it wasn't visible because the text for all of the menu items was empty.

_menu_link_translate was being called on $item before the access check was performed and access defaulted to FALSE, however, _menu_link_translate skips translation if $item['access'] is set to FALSE. As a result of this translation was being skipped and no title for the link was being set unless I was logged in as the superuser.

The attached patch fixed the problem on my system.

emptyvoid’s picture

Version: 6.x-1.5 » 6.x-1.7
Assigned: Unassigned » emptyvoid

Thanks tchamness, I will review the patch and test it on a development build. If there are no problems I will include it in a new release with the other patches I am working on.

Thanks,

emptyvoid’s picture

Status: Needs review » Patch (to be ported)

Patch commited and will be rolled into the next release.

emptyvoid’s picture

Status: Patch (to be ported) » Closed (fixed)