Steps to reproduce:

  • Install Drupal
  • Create a new role with these permissions: 'Article: Create new content' and 'Use the toolbar'
  • Log in as this user
  • Admin toolbar has no links, even though the user has permission to 'Add content', because the parent 'Content' link goes to the content overview page and requires that permission in order to be visible

Workaround: Grant the 'Use shortcuts' permission as default Shortcut set contains 'Add content' link

The menu item probably just checks whether the user has the permission to access the content overview. But its a valid case where users may add content of certain types but may not access the content overview. But they dont see the menu links to do so.

Comments

sic created an issue. See original summary.

sic’s picture

Component: node system » system.module

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

This is true but I don't think it's major, for one thing, the 'Add content' link is available in the default Shortcuts menu so that is a very easy workaround. You can also add a link to /node/add to the administration menu.

This also applies to all children links of 'Content', e.g. 'Files' and 'Media', and any other links that may come from contrib.

A possible approach to address this would be that if you don't have 'Access the Content overview page' permission, the 'Content' link could show a page with the list of options under it, as 'Structure' does.

But if you do have 'Access the Content overview page', then 'Content' should still take you to /admin/content otherwise this would be massively disruptive.

pameeela’s picture

Still thinking that this might be 'works as designed'. The menu is structured in such a way that you have to have access to view the overview page in order to access that set of links. Can we change it in a way that is not either a huge amount of work or not disruptive? And should we when there are valid alternatives?

pameeela’s picture

Issue summary: View changes
pameeela’s picture

Title: Menu item for adding content is not visible even when user may actually add content but may not access overview » 'Add content' link not available in toolbar when user cannot access content overview
pameeela’s picture

Issue summary: View changes
pameeela’s picture

Priority: Major » Normal

Oops, forgot to update the priority.

pameeela’s picture

Issue tags: +Bug Smash Initiative

Sorry, more noise to add the tag :|

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

larowlan’s picture

Status: Active » Closed (works as designed)

I think this is works as designed too.

There's been no traction in almost 6 years and there's a documented work around.

If you need it to work, you can use the menu system to place a new menu link in the navigation menu at the top level, or move the existing 'add content' link out from beneath the content overview one.