The attached ".png" file shows disable_breadcrumbs error I get on the "/admin/content" page for a custom user role on a drupal 7 site. I do not have breadcrumbs disabled on this page. The error is not there for the role super user of this site.

Any suggestions as to what the problem might be?

Thank you.

Comments

damiankloip’s picture

Status: Active » Fixed

This turned out to be a permissions problem, you need the 'administer nodes' permission to do node operations so this access check is now in place. Committed to dev branch.

Status: Fixed » Closed (fixed)

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

nonzero’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new605 bytes

To work around the error, I changed line 339 to:

  if (array_key_exists('admin', $form)  && array_key_exists('#option', $form['admin']['nodes']) ) {

There's probably a more semantically correct approach that looks at permissions instead.

nikolay shapovalov’s picture

Works for me. Thanks a lot.

elvismdev’s picture

Works for me too, many thanks!

rooby’s picture

Are you guys saying that you still need this patch with the latest dev version? Or is this just for the 1.3 version? Because a fix was apparently commited to the dev version.

rooby’s picture

Also, instead of array_key_exists() it is preferrable to use isset(), like this:

if (isset($form['admin']['nodes']['#option'])) {

This isset also makes the first one redundant because for $form['admin']['nodes']['#option'] to exist $form['admin'] must also exist.

ailgm’s picture

Issue summary: View changes

Changing it to this worked for me:
if (isset($form['admin']['nodes']['#options'])) {
The singular word "option" didn't.

sheldonkreger’s picture

This is still and issue and none of the solutions posted are working for me. I am using 7.x-1.3

sheldonkreger’s picture

Status: Needs review » Needs work
sheldonkreger’s picture

Also not fixed in dev branch.

narquam’s picture

I see this is still an issue. This seems like a very minor change, I'm surprised it still isn't in a release.

bart lambert’s picture

I'm also still struggeling with this problem!

fonant’s picture

Fix in #8 works for me.