From 636aafde9372a5ade7810c35c8e401637ae15cf6 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sat, 14 Apr 2018 15:59:50 +0100
Subject: [PATCH] Issue #2955673 by msankhala, jenlampton: Text 'logged in as
 admin' in update.php message is ambiguous

---
 core/lib/Drupal/Core/Update/UpdateKernel.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Core/Update/UpdateKernel.php b/core/lib/Drupal/Core/Update/UpdateKernel.php
index 4608f18ea2cd..a686c8865e99 100644
--- a/core/lib/Drupal/Core/Update/UpdateKernel.php
+++ b/core/lib/Drupal/Core/Update/UpdateKernel.php
@@ -182,7 +182,7 @@ protected function handleAccess(Request $request) {
     $db_update_access = $this->getContainer()->get('access_check.db_update');
 
     if (!Settings::get('update_free_access', FALSE) && !$db_update_access->access($account)->isAllowed()) {
-      throw new AccessDeniedHttpException('In order to run update.php you need to either be logged in as admin or have set $settings[\'update_free_access\'] in your settings.php.');
+      throw new AccessDeniedHttpException('In order to run update.php you need to either have "Administer software updates" permission or have set $settings[\'update_free_access\'] in your settings.php.');
     }
   }
 
-- 
GitLab