diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 84221887fd1962f6e87a4bd422c2881a0b10f860..cdeca4ab22a75e9685b023e2631a8ef169fc7936 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -41,7 +41,7 @@ function node_help($route_name, RouteMatchInterface $route_match) { // Remind site administrators about the {node_access} table being flagged // for rebuild. We don't need to issue the message on the confirm form, or // while the rebuild is being processed. - if ($route_name != 'node.configure_rebuild_confirm' && $route_name != 'system.batch_page.normal' && $route_name != 'help.page.node' && $route_name != 'help.main' + if ($route_name != 'node.configure_rebuild_confirm' && $route_name != 'system.batch_page.html' && $route_name != 'help.page.node' && $route_name != 'help.main' && \Drupal::currentUser()->hasPermission('access administration pages') && node_access_needs_rebuild()) { if ($route_name == 'system.status') { $message = t('The content access permissions need to be rebuilt.'); diff --git a/core/modules/system/src/Controller/BatchController.php b/core/modules/system/src/Controller/BatchController.php index d234a4e7e79a5adda3cc220aeebfb275933f9cc4..804e5470e85fe56c2c18697755ae931dac43717c 100644 --- a/core/modules/system/src/Controller/BatchController.php +++ b/core/modules/system/src/Controller/BatchController.php @@ -76,7 +76,7 @@ public function batchPage(Request $request) { } /** - * The _title_callback for the system.batch_page.normal route. + * The _title_callback for the system.batch_page.html route. * * @return string * The page title.