Skip to content

Commit

Permalink
System: update the Google calendar scope check to include wider scope…
Browse files Browse the repository at this point in the history
… parameters
  • Loading branch information
SKuipers committed Nov 6, 2024
1 parent 3d67c36 commit e5b9510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Adapter/OAuthGoogleAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function login(array $input)
}

$session->set('googleAPIAccessToken', $accessToken);
$session->set('googleAPICalendarEnabled', mb_stripos($accessToken['scope'] ?? '', 'https://www.googleapis.com/auth/calendar.readonly') !== false);
$session->set('googleAPICalendarEnabled', mb_stripos($accessToken['scope'] ?? '', 'https://www.googleapis.com/auth/calendar') !== false);

// Update the refresh token for this user, if we received one
if (!empty($accessToken['refresh_token'])) {
Expand Down

0 comments on commit e5b9510

Please sign in to comment.