drupal_access_denied sets the destination to previous path before changing path; spaces-access-denied doesn't.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zero2one’s picture

Version: 6.x-3.2 » 6.x-3.6
FileSize
500 bytes

I confirm this fix.

Hereby the patch for 6.x-3.6

tstackhouse’s picture

Version: 6.x-3.6 » 7.x-3.x-dev

I agree that this is a definite problem with this module, it prevents modules that allow login from an access denied page to properly react and forward users along to their intended destination.

It also prevents modules that react statefully to requests that are denied, e.g. showing path-based and/or role based error messages, to properly handle such requests.

This is a fairly popular module, and is included in the OpenAtrium distribution, and likely others as well, therefore this issue could have a broad impact.

There is no 6.x-3.x branch to report this against, bu looking over the code in 7.x-3.x it seems like the issue is still present and should be patched and back ported to the 6.x line.