The new blog entry does not show up with a user that is not the first user...

The reason, the function admin_links_link in the admin_links.module file calls user_access('create ' . $node->type . ' content') which works great for all nodes except blogs which needs to read user_access('create ' . $node->type . ' entries').

I just added an or statement and that fixed the problem... if (admin_links_var('link_new') && (user_access('create ' . $node->type . ' content') || user_access('create ' . $node->type . ' entries'))) {.

Of course it would be better if the core changed the blog to the standard, but until that happens it would be nice to have this fixed in the admin links module.

Comments

dave reid’s picture

Status: Active » Fixed

Even better is to use node_access('create', $node) since it handles all node types and possibilities then. Committed small change to CVS to fix this:
http://drupal.org/cvs?commit=323892

Status: Fixed » Closed (fixed)
Issue tags: -create content, -blogs

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