Commit 0d5015cd authored by Marcos Duran's avatar Marcos Duran Committed by Sven Decabooter
Browse files

Issue #3145905: Automated Drupal 9 compatibility fixes

parent 89787f42
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
name: 'Access Control Bridge'
description: 'Bridge module linking Access Control modules so their access permissions work happily together.'
core: 8.x
core_version_requirement: ^8 || ^9
package: 'Access control'
type: module
+3 −1
Original line number Diff line number Diff line
@@ -135,7 +135,9 @@ function acb_node_grants_alter(&$grants, AccountInterface $account, $op) {

  // ACL requires special care. The responsible module can only be determined by using the database.
  if (\Drupal::moduleHandler()->moduleExists('acl')) {
    $acl = db_select('acl')
    // TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.
    // You will need to use `\Drupal\core\Database\Database::getConnection()` if you do not yet have access to the container here.
    $acl = \Drupal::database()->select('acl')
      ->fields('acl', ['acl_id','module'])
      ->execute()
      ->fetchAllAssoc('acl_id');