Loading acb.info.yml +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 acb.module +3 −1 Original line number Diff line number Diff line Loading @@ -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'); Loading Loading
acb.info.yml +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
acb.module +3 −1 Original line number Diff line number Diff line Loading @@ -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'); Loading