Skip to content

Commit

Permalink
Merge branch '3.x' into issue-1056
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire authored Jul 30, 2024
2 parents 10569cc + e5569e8 commit 492a5db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/apigee_edge_teams/apigee_edge_teams.module
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,15 @@ function apigee_edge_teams_api_product_access(EntityInterface $entity, $operatio
$team_storage = \Drupal::entityTypeManager()->getStorage('team');
/** @var \Drupal\apigee_edge_teams\Entity\TeamInterface $team */
$teams = $team_storage->loadMultiple($developer_team_ids);
$result = AccessResult::neutral();
foreach ($teams as $team) {
$result = $access_checker->access($entity, $operation, $team, $account, TRUE);
$result = $result->orIf($access_checker->access($entity, $operation, $team, $account, TRUE));
if ($result->isAllowed()) {
break;
}
}
}

// $result is always defined.
return $result;
}

Expand Down

0 comments on commit 492a5db

Please sign in to comment.