When a user visits a page requiring authentication, path_image assumes the user has access to that path and displays the block anyway.

The attached patch checks the Drupal headers array first to make sure there is not a 403 Forbidden hidden away. If there is, the default home page header is shown instead.

CommentFileSizeAuthor
#1 changeweight.txt237 bytesbudda
deniedpatch.txt486 bytesbudda

Comments

budda’s picture

StatusFileSize
new237 bytes

The module needs to run after other modules to make sure any 403 errors are caught.,
This patch changes the module weight to +5.

AjK’s picture

Status: Active » Fixed
AjK’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)