Remove unnecessary workaround for a permission that was added in Drupal 9.4

Created on 30 May 2023, over 1 year ago
Updated 19 October 2023, about 1 year ago

Problem/Motivation

There might be some 9.4.x and above specific code that can be simplified, when we grep for // Check for permission that was added in Drupal core 9.4.x.
I found 1 instance of it in \Drupal\Tests\automatic_updates\Functional\UpdaterFormTestBase::setUp

It seems like the code block

     // Check for permission that was added in Drupal core 9.4.x.
    $available_permissions = array_keys($this->container->get('user.permissions')->getPermissions());
    if (in_array('view update notifications', $available_permissions, TRUE)) {
      array_push($permissions, 'view update notifications');
    }

is supporting Drupal 9.4.x and above.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India omkar.podey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024