Skip to content
Snippets Groups Projects
Commit 22cf0b4e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #35410 by kbahey: made site offline feature work.

parent ef7d2c8a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1065,7 +1065,7 @@ function _menu_site_is_offline() { ...@@ -1065,7 +1065,7 @@ function _menu_site_is_offline() {
// Check if the user has administration privileges // Check if the user has administration privileges
if (!user_access('administer site configuration')) { if (!user_access('administer site configuration')) {
// Check if this is an attempt to login // Check if this is an attempt to login
if (drupal_get_normal_path($_GET['q']) != 'user/login') { if (drupal_get_normal_path($_GET['q']) != 'user') {
return TRUE; return TRUE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment