summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.backendDashboard.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-10-27 17:55:47 +0200
committerChristophe Simonis <chs@odoo.com>2016-10-27 17:55:47 +0200
commit6f8e40cdecaffe70b2ed8aa91afe787c94a0a2e5 (patch)
treea9c027f4f9f610ca7763a8249d8b8f0ef0767e56 /addons/website/static/src/js/website.backendDashboard.js
parent7a65ec28b931e1e89cca7b8e9392b084010207d0 (diff)
parent1304d13c7f59ecdef46b3bd8014f5ae8fe874c45 (diff)
[MERGE] forward port branch saas-11 up to 1304d13
Diffstat (limited to 'addons/website/static/src/js/website.backendDashboard.js')
-rw-r--r--addons/website/static/src/js/website.backendDashboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.backendDashboard.js b/addons/website/static/src/js/website.backendDashboard.js
index ed241fd2215..35b27340c5f 100644
--- a/addons/website/static/src/js/website.backendDashboard.js
+++ b/addons/website/static/src/js/website.backendDashboard.js
@@ -257,7 +257,7 @@ var Dashboard = Widget.extend(ControlPanelMixin, {
// Check if the user is authenticated and has the right to make API calls
if (!gapi.analytics.auth.getAuthResponse()) {
this.display_unauthorized_message($analytics_components, 'not_connected');
- } else if (gapi.analytics.auth.getAuthResponse() && gapi.analytics.auth.getAuthResponse().scope.indexOf('https://www.googleapis.com/auth/analytics ') === -1) {
+ } else if (gapi.analytics.auth.getAuthResponse() && gapi.analytics.auth.getAuthResponse().scope.indexOf('https://www.googleapis.com/auth/analytics') === -1) {
this.display_unauthorized_message($analytics_components, 'no_right');
} else {
this.make_analytics_calls($analytics_components);