The last steps the code takes before redirecting users is checking whether maintenance mode is enabled, the logged in user has the permission to access the site in maintenance mode, and the redirect URL has been set.

The code should instead:

  • If the redirect URL has not been set, exit immediately
  • If maintenance mode is enabled and the logged in user has the access site in maintenance mode permission, exit immediately

Then, the code should verify the other conditions are met.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

apaderno created an issue. See original summary.

avpaderno’s picture

Issue summary: View changes
avpaderno’s picture

Title: Early exit when maintenance mode is enabled and users have the permission to access the site on maintenance mode » Early exit when maintenance mode is enabled and users have the permission to access the site in maintenance mode
avpaderno’s picture

Title: Early exit when maintenance mode is enabled and users have the permission to access the site in maintenance mode » Early exit when maintenance mode is enabled and users have the permission to access the site in maintenance mode, or when the redirect URL has not been set
Issue summary: View changes

avpaderno’s picture

Issue summary: View changes
Status: Active » Needs review

  • apaderno committed 8b50083b on 2.x
    Issue #3454828: Early exit when maintenance mode is enabled and users...
avpaderno’s picture

Status: Needs review » Needs work
Issue tags: +Needs backport to D7
avpaderno’s picture

Version: 2.x-dev » 7.x-1.x-dev

avpaderno’s picture

Status: Needs work » Needs review

  • apaderno committed c655027a on 7.x-1.x
    Issue #3454828: Early exit when maintenance mode is enabled and users...
avpaderno’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.