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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | changeweight.txt | 237 bytes | budda |
| deniedpatch.txt | 486 bytes | budda |
Comments
Comment #1
buddaThe module needs to run after other modules to make sure any 403 errors are caught.,
This patch changes the module weight to +5.
Comment #2
AjK commentedhttp://drupal.org/cvs?commit=50453
Comment #3
AjK commentedhttp://drupal.org/cvs?commit=50454
Comment #4
(not verified) commented