From 757fd0fa01dfd58bb697ca833b7cad713df7c16a Mon Sep 17 00:00:00 2001
From: Dave Long <dave@longwaveconsulting.com>
Date: Mon, 8 Jan 2024 17:18:34 +0000
Subject: [PATCH] Issue #2942016 followup by andypost: Add a hook_help() to the
 Umami profile, and link to it from the toolbar when the Help module is
 enabled

---
 core/profiles/demo_umami/demo_umami.profile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/profiles/demo_umami/demo_umami.profile b/core/profiles/demo_umami/demo_umami.profile
index 97b89ee8944f..e6b8b2b5f69c 100644
--- a/core/profiles/demo_umami/demo_umami.profile
+++ b/core/profiles/demo_umami/demo_umami.profile
@@ -86,7 +86,7 @@ function demo_umami_toolbar() {
   // Show warning only on administration pages.
   $admin_context = \Drupal::service('router.admin_context');
   if ($admin_context->isAdminRoute()) {
-    $link_to_help_page = \Drupal::moduleHandler()->moduleExists('help') && \Drupal::currentUser()->hasPermission('access administration pages');
+    $link_to_help_page = \Drupal::moduleHandler()->moduleExists('help') && \Drupal::currentUser()->hasPermission('access help pages');
     $items['experimental-profile-warning']['#type'] = 'toolbar_item';
     $items['experimental-profile-warning']['tab'] = [
       '#type' => 'inline_template',
-- 
GitLab