summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.backendDashboard.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-10-27 18:23:44 +0200
committerChristophe Simonis <chs@odoo.com>2016-10-27 18:23:44 +0200
commitea479ce6f3ffdcf36c5f918b6ce68888e42a56ce (patch)
treeaddf64e3f038bf53c293cc7ba1e81fd0b9413b32 /addons/website/static/src/js/website.backendDashboard.js
parent68b1c5c1fa643e99fd5e597949c39e222477dcab (diff)
parent3bb022d57c43c51a5fd4be39e4123b1206db4782 (diff)
[MERGE] forward port branch 10.0 up to 3bb022d
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 fe6e9541ac5..5caad853fcf 100644
--- a/addons/website/static/src/js/website.backendDashboard.js
+++ b/addons/website/static/src/js/website.backendDashboard.js
@@ -259,7 +259,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);