Skip to content
Snippets Groups Projects
Commit 3a68440b authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Issue #3383306 by ivrh: PHP fatal error on Drupal 10.1.x...

Issue #3383306 by ivrh: PHP fatal error on Drupal 10.1.x Drupal\Core\Entity\Query\QueryInterface::accessCheck()
parent bfc8f24d
Branches
Tags 2.0.3
No related merge requests found
......@@ -235,7 +235,7 @@ function group_forum_node_grants(AccountInterface $account, $operation) {
$group_types = Drupal::entityTypeManager()->getStorage('group_type')->loadMultiple();
foreach ($group_types as $group_type) {
// Get the IDs of all the groups the user is not part of for the group type.
$query = Drupal::entityTypeManager()->getStorage('group')->getQuery();
$query = Drupal::entityTypeManager()->getStorage('group')->getQuery()->accessCheck(FALSE);
$query->condition('type', $group_type->id());
if (!empty($member_gids)) {
$query->condition('id', $member_gids, 'NOT IN');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment