Just found this user_access('access own webform results', $account) with $account not defined.

Patch attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bxtaylor’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies cleanly.

The breadcrumb still functions properly for users with the 'access own webform results' permission.

karl qin’s picture

patch solves the problem

Shawn DeArmond’s picture

Confirmed again. +1

pjcdawkins’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
983 bytes

Can we also fix another problem with the same function, involving cases where $breadcrumb starts off empty? Webform was adding an empty breadcrumb item.

froboy’s picture

Worked for me too.

Shawn DeArmond’s picture

Status: Needs review » Reviewed & tested by the community

@pjcdawkins, that is out of scope for this particular issue. Please file a different issue.

OP's patch is RTBC.

Jerenus’s picture

work for me.

quicksketch’s picture

Status: Reviewed & tested by the community » Fixed

Thanks guys! Committed to D7 3.x and 4.x branches. Doesn't seem to affect 6.x-3.x.

quicksketch’s picture

BTW I included @pjcdawkins's patch in #4, as it didn't do any harm that I could see.

pjcdawkins’s picture

Thanks

Status: Fixed » Closed (fixed)

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

tigertrussell’s picture

Did this not make it into the latest version of Webform? I see a patch marked RTBC in Oct 2012... it's 2014 now and the lines of the patch don't match up, so I can only assume that this is a different version... yet the patch isn't applied.