From bb79badba4886208e08cffcac2805cb8299b3e76 Mon Sep 17 00:00:00 2001
From: prasad <prasad@vtiger.com>
Date: Tue, 6 Feb 2018 13:00:26 +0530
Subject: [PATCH] Fixes #725, #755, #563: Unified authrozation scope request
 when signin either from Contacts or Calendar module

---
 .../modules/Google/modules/Google/connectors/Oauth2.php       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/vtiger/modules/Google/modules/Google/connectors/Oauth2.php b/pkg/vtiger/modules/Google/modules/Google/connectors/Oauth2.php
index bbed6e25..2c951e77 100644
--- a/pkg/vtiger/modules/Google/modules/Google/connectors/Oauth2.php
+++ b/pkg/vtiger/modules/Google/modules/Google/connectors/Oauth2.php
@@ -61,7 +61,7 @@ class Google_Oauth2_Connector {
 		$this->client_id = Google_Config_Connector::$clientId;
 		$this->client_secret = Google_Config_Connector::$clientSecret;
 		$this->redirect_uri = Google_Config_Connector::getRedirectUrl();
-		$this->scope = $this->scopes[$this->source_module];
+		$this->scope = implode(' ', array_values($this->scopes));
     }
     
     public function getClientId() {
@@ -251,4 +251,4 @@ class Google_Oauth2_Connector {
     
 }
 
-?>
\ No newline at end of file
+?>
-- 
GitLab