Hi,

When a user has Create $content_type but not administer node permission, the corresponding Create $content_type sub-menu doesn't appear in Content Management > Content menu whereas it appears correctly in the Navigation block.

Any ideas?

Many thanks,

Comments

benoit.borrel’s picture

Hi again,

Just to say my issue is similar to the Admin Menu issue @ http://drupal.org/node/223314.

Thanks,

sun’s picture

Assigned: Unassigned » sun
Status: Active » Needs review
StatusFileSize
new3.07 KB

Please test attached patch.

benoit.borrel’s picture

@ sun:

Thanks for the patch but it didn't work.

My setup was:

  • Drupal 5.7 + Admin menu 2.2
  • logged user with following permissions:
    • access administration menu
    • access content
    • add page content
    • edit page content

xHTML output pertinent to admin menu was:

<div id="admin_menu">
  <ul>
    <li class="expandable admin_menu-icon"><a href="/?q=node" title="" class="active"><img class="admin_menu-icon" src="/misc/favicon.ico" width="16" height="16" alt="" /></a>
      <ul>
        <li><a href="/?q=admin" title="">Administer</a></li>
        <li><a href="/?q=admin/logs/status/run-cron&amp;destination=node" title="">Run cron</a></li>
      </ul>
    </li>
    <li class="admin_menu-action admin_menu-logout"><a href="/?q=logout" title="">Logout pub1</a></li>
    <li class="admin_menu-action admin_menu-icon admin_menu-users"><a href="/?q=node" title="" class="active">0 / 2 <img src="/sites/all/modules/admin_menu/images/icon_users.png" width="16" height="15" alt="Current anonymous / authenticated users" title="Current anonymous / authenticated users" /></a></li>
    <li class="expandable"><a href="/?q=admin/logs" title="">Logs</a>
      <ul>
        <li><a href="/?q=admin/logs/watchdog" title="">Recent log entries</a></li>
        <li><a href="/?q=admin/logs/access-denied" title="">Top 'access denied' errors</a></li>
        <li><a href="/?q=admin/logs/page-not-found" title="">Top 'page not found' errors</a></li>
        <li><a href="/?q=admin/logs/search" title="">Top search phrases</a></li>
      </ul>
    </li>
  </ul>
</div>

Any idea? Would you like more info?

Again, thank you for your help.

sun’s picture

Err... you need to clear your cache (cache_menu)... either do this manually, or apply attached patch and run update.php afterwards.

sun’s picture

Status: Needs review » Fixed

Thanks, committed that patch.

benoit.borrel’s picture

@ sun:

I had cleared the cache, but may had forgotten to run update.php :-(

Anyway, I upgraded to 5.x-2.4 which fixed the issue.

Thanks sun for your commitment.

batje’s picture

Version: 5.x-2.2 » 5.x-2.x-dev
Status: Fixed » Postponed (maintainer needs more info)

Sorry, but i think i still have this.

Problem is I dont see the parent 'Content Management' item in the menu-bar, thus i dont see 'Content', thus i dont see any 'Add Whatever' items.

I have tried 5.x.2-4 and 5.x-2.x-dev. Remove, install, try again, same results.

If I click 'Administer' under the Icon, I can create content, no problem.

(though if i disable 'access administration pages' I get an access denied error there, so i guess that menu item is not supposed to be there when i uncheck that.

The site is a bit big (always implement your security last ;-), so there is a few more rights:

access administration menu
create faq
edit faq
edit own faq
view faq
view header image
create images
edit images
edit own images

access content
create story content
edit own story content
edit story content

search content
access administration pages (but i wouldnt say i needed this)
access tinymce
access all views

And then this is the menu:

  <div id="admin-menu">
<ul><li class="expandable admin-menu-icon"><a href="/phase2/?q=node/1"><img class="admin-menu-icon" src="/phase2/files/start_favicon.png" width="16" height="16" alt="" /></a>
<ul><li><a href="/phase2/?q=admin">Administer</a></li><li><a href="/phase2/?q=admin/logs/status/run-cron&amp;destination=node%2Fadd">Run cron</a></li></ul></li><li class="admin-menu-action admin-menu-logout"><a href="/phase2/?q=logout">Logout gracea</a></li><li class="admin-menu-action admin-menu-icon admin-menu-users"><a href="/phase2/?q=node/1">0 / 2 <img src="/phase2/sites/all/modules/standard/admin_menu/images/icon_users.png" width="16" height="15" alt="Current anonymous / authenticated users" title="Current anonymous / authenticated users" /></a></li><li class="expandable"><a href="/phase2/?q=admin/logs">Logs</a>
<ul><li><a href="/phase2/?q=admin/logs/watchdog">Recent log entries</a></li><li><a href="/phase2/?q=admin/logs/access-denied">Top 'access denied' errors</a></li><li><a href="/phase2/?q=admin/logs/page-not-found">Top 'page not found' errors</a></li><li><a href="/phase2/?q=admin/logs/search">Top search phrases</a></li></ul></li><li><a href="/phase2/?q=admin/help">Help</a></li></ul></div>
sun’s picture

Version: 5.x-2.x-dev » 5.x-2.2
Status: Postponed (maintainer needs more info) » Fixed

@batje: Please see http://drupal.org/node/226502 for further information. That isn't related to this issue here.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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