Skip to content
Snippets Groups Projects

Fix help page permission #2942016

Closed Andrey Postnikov requested to merge issue/drupal-2942016:2942016-followup into 11.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -86,7 +86,7 @@ function demo_umami_toolbar() {
@@ -86,7 +86,7 @@ function demo_umami_toolbar() {
// Show warning only on administration pages.
// Show warning only on administration pages.
$admin_context = \Drupal::service('router.admin_context');
$admin_context = \Drupal::service('router.admin_context');
if ($admin_context->isAdminRoute()) {
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']['#type'] = 'toolbar_item';
$items['experimental-profile-warning']['tab'] = [
$items['experimental-profile-warning']['tab'] = [
'#type' => 'inline_template',
'#type' => 'inline_template',
Loading