Commit 527511cc authored by John P's avatar John P Committed by Sven Decabooter
Browse files

Issue #3145905 by jpat14, svendecabooter: Automated Drupal 9 compatibility fixes

parent 0d5015cd
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -135,8 +135,6 @@ 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')) {
    // 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()