Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just checked what my custom 403 page looks like by trying to visit /admin when not logged in, and was greeted with my admin theme (in this case Garland). While there are hopefully few situations where users would be sent to such a page by accident, it seems better if it used the default site theme for those pages - since you're by definition not accessing the admin area when you see it.
Comment | File | Size | Author |
---|---|---|---|
#1 | system-346455-1.patch | 1.16 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedThis patch checks to make sure that the user has permission to access the specified page before it allows Drupal to overrides the default theme with the admin theme.
Comment #3
effulgentsia CreditAttribution: effulgentsia commentedLooks fixed to me.
Comment #5
wOOge CreditAttribution: wOOge commentedI back ported this patch to D6, see: http://drupal.org/node/759836