diff --git a/core/modules/system/src/Controller/SystemController.php b/core/modules/system/src/Controller/SystemController.php index a04724fe804dfbbe7ee2ae70efb4917e37c8e1bf..801c12c3aaaf0deef0f1c7b915c13d2e6894e59c 100644 --- a/core/modules/system/src/Controller/SystemController.php +++ b/core/modules/system/src/Controller/SystemController.php @@ -118,7 +118,7 @@ public static function create(ContainerInterface $container) { */ public function overview($link_id) { // Check for status report errors. - if ($this->systemManager->checkRequirements() && $this->currentUser()->hasPermission('administer site configuration')) { + if ($this->currentUser()->hasPermission('administer site configuration') && $this->systemManager->checkRequirements()) { $this->messenger()->addError($this->t('One or more problems were detected with your Drupal installation. Check the <a href=":status">status report</a> for more information.', [':status' => Url::fromRoute('system.status')->toString()])); } // Load all menu links below it.