diff --git a/menu_per_role.module b/menu_per_role.module index 34b308c..6e4081c 100644 --- a/menu_per_role.module +++ b/menu_per_role.module @@ -1,5 +1,4 @@ roles))) == 0) { // not permitted by the rids... return FALSE; } // check whether this role has visibility access (must not be present) - $hrids = _menu_per_role_get_roles($mlid, 1); + $hrids = _menu_per_role_get_roles($item['mlid'], 1); if (!empty($hrids) && count(array_intersect($hrids, array_keys($user->roles))) > 0) { // not permitted by the hrids... return FALSE; @@ -151,7 +155,7 @@ function menu_per_role_menu_link_alter(&$item, $menu) function menu_per_role_translated_menu_link_alter(&$item, $map) { // avoid checking the role if the item access is already false - if ($item['access'] && _menu_per_role_access($item['mlid']) === FALSE) { + if ($item['access'] && _menu_per_role_access($item) === FALSE) { $item['access'] = FALSE; } }