*** menu_per_role.module~ 2010-10-19 04:53:15.000000000 -0400 --- menu_per_role.module 2010-12-13 22:16:26.200647396 -0500 *************** *** 39,52 **** // check whether this role has visibility access (must be present) $rids = _menu_per_role_get_roles($mlid, 0); ! if (!empty($rids) && count(array_intersect($rids, array_keys($user->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); ! if (!empty($hrids) && count(array_intersect($hrids, array_keys($user->roles))) > 0) { // not permitted by the hrids... return FALSE; } --- 39,52 ---- // check whether this role has visibility access (must be present) $rids = _menu_per_role_get_roles($mlid, 0); ! if (!empty($rids) && count(array_intersect($rids, array_values($user->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); ! if (!empty($hrids) && count(array_intersect($hrids, array_values($user->roles))) > 0) { // not permitted by the hrids... return FALSE; }