As user 1 I have to grant permission for other users for all individual menu’s. Because of this other users never have permissions for using Menu Editor for newly created menu’s. Is it possible to have a permissions setting for all menu’s (like nodes have “administer nodes” and/or “create/edit/delete any node-type content)?

Comments

donquixote’s picture

Yeah, I noticed the same thing two days ago ..

There is already an "administer menus" permission. It would make sense if this permission does automatically grant access for menu editor on all menus.
Do you think this would be enough, or do you need an additional permission?

EDIT:
Theoretically this should already be the case, but there is a typo in the code :)

<?php
function menu_editor_perm() {
  $result = db_query("SELECT menu_name FROM {menu_custom} ORDER BY title");
  $perm = array();
  while ($menu = db_fetch_array($result)) {
    $perm[] = "menu edit $menu[menu_name]";
  }
  return $perm;
}
?>

The correct name of the permission is "administer menu", not "administer menus".
I will fix that immediately.

donquixote’s picture

Status: Active » Fixed

fixed in 2.0-rc2

rolfmeijer’s picture

Thank you, you’re fast! :-)
I just tested rc2 and for me this is enough. (Some documentation might help maybe, because the ‘main’ permission is now outside the menu_editor scope.)

donquixote’s picture

True, but where would you put that documentation?

rolfmeijer’s picture

Well, yes, eeeh, you’re asking me, aha, eeeh, well…

Just thinking out loud:

  • Advanced help
  • Project page
  • Readme.txt
  • Is it possible to have some text on the permissions page?

Maybe the last one would be the best option, but I guess it’s not possible (you’ve probably thought of that as well).

donquixote’s picture

Permissions page is where we would need it, but that page is already crowded. And who reads the help or readme nowadays?

Maybe project page is the best. Or I create some documentation pages in drupal.org.

rolfmeijer’s picture

Well, personally I like Advanced Help, I do read it… :-)
I like very much what Views did, make a dedicated help page on drupal.org which just points to the advanced help page.
But of course the project page is always good. From there you could just point to this thread (or dupe it and clean it up a little ;-) ).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.