Hi

Maybe it's a duplicate issue with http://drupal.org/node/562304 (if it is, sorry for that).

When i log with a non superadmin user, none item menu is displayed even if this user has the right permission (eg : content is not displayed even if admin content and search content permissions are granted to the user)

I attached to screen captures, one with the administration menu toolbar, the other with the classic toolbar (toolbar core module) with the same user and same permissions.

Is it a bug or do i something wrong ?

Thanks

Comments

kristofferwiklund’s picture

Same for me.

sun’s picture

Status: Active » Closed (works as designed)

From the README:

-- CONFIGURATION --

* Configure user permissions in Administration » People » Permissions »
  admin_menu module:

  - access administration menu

    Users in roles with the "Access administration menu" permission will see
    the administration menu at the top of each page.

  - display drupal links

    Users in roles with the "Display drupal links" permission will receive
    links to drupal.org issue queues for all enabled contributed modules. The
    issue queue links appear under the administration menu icon.

  Note that the menu items displayed in the administration menu depend on the
  actual permissions of the viewing user. For example, the "People" menu item
  is not displayed to a user who is not a member of a role with the "Administer
  users" permission.
kristofferwiklund’s picture

Status: Closed (works as designed) » Active

Hi.

I install a minimal installation of Drupal 7.10.
Active the Admin menu module.
Created a simple user
Added the permission above.

Tried to login as test-user

Got the following error message:
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: SELECT ml.p1 AS p1, ml.p2 AS p2, ml.p3 AS p3, ml.p4 AS p4, ml.p5 AS p5, ml.p6 AS p6, ml.p7 AS p7, ml.p8 AS p8, ml.p9 AS p9 FROM {menu_links} ml WHERE (router_path IN ()) ; Array ( ) in admin_menu_tree_dynamic() (line 76 of /var/www/demo/web/sites/all/modules/admin_menu/admin_menu.inc).

sun’s picture

Version: 7.x-3.0-rc1 » 7.x-3.x-dev
Component: User interface » Code
Status: Active » Fixed

@kristofferwiklund: That error was already fixed. A new version of admin_menu will be released early February.

kristofferwiklund’s picture

Status: Fixed » Needs work

Okay.

I have now installed the latest admin_menu with 7.x-3.x-dev. I also had to install the latest core 7.x-dev. But now I don't get any error message for the test user.

But the original problem is still there.

My setup:
Core minimal installation
Enable menu_admin
Created simple test-user give it three permission "Access administration menu ", "Display Drupal links", "Access the content overview page"

When the test-user log in the Drupal links is visible but the "Content" options is missing. The test user can access /admin/content/node and should therefore see the "Content" tab in admin menu.

sun’s picture

The top-level categories are only visible if the user has the "access administration pages" permission.

Sorry for leaving that out, it's also in the README.txt.

That additional permission comes from core's System module, and is very unfortunate, to say the least.

kristofferwiklund’s picture

Category: bug » feature

Okay sun. Yes if a add the "Use the administration pages and help" the user can access content. But then the users sees the configuration pages also (but can not access it). And this is not so nice solution. Because some time you would like let the user use the admin_menu with out displaying to much to confuse the user. This works for the Toolbar-module in core but not for admin.

So I change this to a feature request as admin_menu works a design but it would be good if it could work similar to toolbar.

bkosborne’s picture

This is something that's always bothered me a bit. The "editor" role I've created only has access to one item under Configuration (managing url redirects), but they see all of the links for things like People, Development, User Interface, etc. Clicking those gives an access denied page.

I haven't looked at the code, but is this unavoidable? If it's not, I'd be willing to go in and create a patch to see if this can be adjusted. In the meantime, I have the module disabled and am using the standard Toolbar module.

sun’s picture

Status: Needs work » Closed (fixed)