Skip to content

Commit

Permalink
Fix for strpos error (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire authored Dec 13, 2023
1 parent 753b2be commit 6d1ca8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function __construct(AccountInterface $current_user, RouteMatchInterface
*/
public function onRespond(ResponseEvent $event) {
// Anonymous user's does not have access to these routes.
if ($this->currentUser->isAuthenticated() && strpos($this->routeMatch->getRouteName(), 'entity.team_app.') === 0) {
if ($this->currentUser->isAuthenticated() && strpos((string) $this->routeMatch->getRouteName(), 'entity.team_app.') === 0) {
// Team is available in most of the team app routes as a route parameter.
/** @var \Drupal\apigee_edge_teams\Entity\TeamInterface|NULL $team */
$team = $this->routeMatch->getParameter('team');
Expand Down

0 comments on commit 6d1ca8b

Please sign in to comment.