Closed (fixed)
Project:
Empty Page
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 03:58 UTC
Updated:
11 Apr 2012 at 01:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
bleen commentedI dont believe you can override the default behavior of Acces Denied in this way. Access checks happen long before the empty_page module gets its hands on the request.
I'm 99% sure I'm right about this too...
Comment #2
bleen commentedPlease re-open if you have any evidence to contradict my comments in #1
Comment #3
Nick Robillard commentedActually this is a legitimate issue. And the fix is quite simple. For D7, I tracked it down to drupal_deliver_html_page() in common.inc:
(... indicates code removed for readability purposes)
The
if (empty($return)check always returns TRUE because our menu callback is always empty. :)All that needs to be done to fix this is changing the return to ' ' (a space) instead of ''. This should also be the case for D6 version. I don't have time to commit this right now. bleen18 if you feel like making this change for Drupal 6 and 7 dev versions, go ahead.
Nice catch carn1x.
Comment #4
bleen commentedI committed this change to both (7.x) and master (6.x):
http://drupalcode.org/project/empty_page.git/commit/f25e49a
http://drupalcode.org/project/empty_page.git/commit/10ef158
Comment #5
carn1x commentedAwesome thanks a bunch :)