summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.backend.xml
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2016-09-14 15:08:00 +0200
committerDamien Bouvy <dbo@odoo.com>2016-09-16 11:46:39 +0200
commit904f06f070b106de471ec76c264abc1f70c790de (patch)
tree2560b6e87ad66655ba5fa8863144263505c0e30f /addons/website/static/src/xml/website.backend.xml
parenta256e1ed34aed0ba64e839f1eb187baec43facf2 (diff)
[IMP] website: make the website dashboard ACL aware
The Website Admin dashboard displays graphs for sales, analytics,etc. using a (somewhat easily) extensible js framework. Unfortunately, this framework is ACL unaware, meaning that it will completely and silently crash if you are missing any of the required access rights. To solve this, extensions must now specify not just a graph name but a necessary group for it and set the value for this group in the extension of the backend controller. This commit also - make the icon visible for the group 'Website Designer and Editor' (not juste the Settings group, which is extremely restrictive) - make the button to set the Google API key only visible to people with sufficient access rights
Diffstat (limited to 'addons/website/static/src/xml/website.backend.xml')
-rw-r--r--addons/website/static/src/xml/website.backend.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/website/static/src/xml/website.backend.xml b/addons/website/static/src/xml/website.backend.xml
index 55c9c7803ad..fd0ba861952 100644
--- a/addons/website/static/src/xml/website.backend.xml
+++ b/addons/website/static/src/xml/website.backend.xml
@@ -25,8 +25,9 @@
<div class="o_layer">
</div>
<div class="o_buttons text-center">
- <h3>Currently there is no data available.</h3>
- <button class="btn btn-sm btn-primary js_link_analytics_settings center-block mb8">Link my Analytics Account</button>
+ <h3>There is no data currently available.</h3>
+ <button t-if="widget.groups.system" class="btn btn-sm btn-primary js_link_analytics_settings center-block mb8">Link my Analytics Account</button>
+ <h5 t-if="!widget.groups.system">You do not have sufficient access rights to configure the Google Analytics account.</h5>
</div>
</div>
</div>