The module creates a menu item titled "Music" that appears on the Navigation menu for anonymous users regardless of whether anonymous users have permission to access the zina module.

Comments

jsquyres’s picture

Version: 6.x-1.9 » 6.x-1.22

+1. It would be great if this could be fixed!

I have Drupal 6.20 with Zina module version 6.x-1.22, Zina version 2.0b22.

jsquyres’s picture

BTW, I note the following in zina.module:zina_menu():

  $items[__ZINA__] = array(
    'title' => t('Music'),
    'description' => t('Zina is a graphical interface to your MP3 collection, a personal jukebox, an MP3 streamer'),
    'page callback' => 'zina_main',
    'access arguments' => array('access content'),
    'type' => MENU_NORMAL_ITEM,
  );

Should the access arguments actually be "array('access zina')"?

(this doesn't fix the main issue; if you create a Drupal menu item to "music", it still shows up even if the anonymous user has had "access zina" permission unchecked in the administration area -- but I thought I'd ask this question anyway...)

charos’s picture

Why don't you try Menu per role module

jsquyres’s picture

Doesn't Drupal automatically not show menu items for nodes that you don't have access to?

If so, I'm not sure why the Zina module is showing the "Music" menu item to users who do not have access to the zina module.