diff -u b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php --- b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php +++ b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php @@ -92,7 +92,7 @@ $this->installEntitySchema('user'); $this->installEntitySchema('menu_link_content'); - $user = $this->setUpCurrentUser([ + $user = User::create([ 'name' => 'test.user', 'mail' => 'testing@example.com', ]); diff -u b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php --- b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php +++ b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php @@ -254,7 +254,7 @@ $display_id = $this->displayID; $links = []; // Check the current user has the appropriate permission to edit views. - if ($this->moduleHandler->moduleExists('views_ui') && $view->access($display_id)) { + if ($this->moduleHandler->moduleExists('views_ui') && $view->storage->access('edit')) { $links['view-edit'] = [ 'title' => $this->t('Edit view'), 'url' => Url::fromRoute('entity.view.edit_display_form', [