Duplicate Page Rendering with Drupal_Access_Denied
jacobson - October 27, 2007 - 04:28
I have encountered a problem previously identified in node 122234 that seems to arise from calling drupal_access_denied inside a page template. The header and side bars of the page are rendered, and then the entire page (including header and sidebars) are rendered again in the page body. No solution to this problem was provided in node 122234. If an anonymous user tries to access certain pages, I want to give them an access denied error and present the login page. How do I do this from inside a page or node template if not with drupal_access_denied?
Thanks.

I'm getting the duplicate
I'm getting the duplicate rendering from a different situation. If I register as a user with admin approval being required, an email gets sent to the user. If the user tries to use the one-time login URL before the admin has approved the account, this triggers the "drupal_access_denied()". I have not manually added a call to this function anywhere in my code, but I still get this duplicate rendering.
Any update on this? I'm also
Any update on this? I'm also getting a duplicate page when a new user clicks the one-time login and they were not approved yet.