Closed (fixed)
Project:
Menu Access
Version:
6.x-1.7
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Apr 2009 at 13:41 UTC
Updated:
4 Jan 2010 at 13:32 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | menu_access-443940-5.patch | 665 bytes | tchamness |
Comments
Comment #1
haggins commentedThis 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.
Comment #2
emptyvoid commentedSorry 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.
Comment #3
haggins commentedDoesn'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!
Comment #4
trentharlem commentedI 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.
Comment #5
tchamness commentedOn 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.
Comment #6
emptyvoid commentedThanks 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,
Comment #7
emptyvoid commentedPatch commited and will be rolled into the next release.
Comment #8
emptyvoid commented