Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-01-13 06:06:14 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-01-15 05:59:32 +0300
commitd430fa2874aa92316883ff121cacbb4abdde1aee (patch)
tree6f09acf1ce4eb03514032ea105e2874f5cc62acf /plugins/Morpheus
parent6d6d3661eca16447075f78bbce33ee3a43f047c9 (diff)
privacy opt out was shown in general settings and privacy settings. we leave it in privacy settings. as admin users do not have access to general settings we need to link to privacy settings
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r--plugins/Morpheus/templates/admin.twig9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/Morpheus/templates/admin.twig b/plugins/Morpheus/templates/admin.twig
index 6d37a6c290..faf06ca36e 100644
--- a/plugins/Morpheus/templates/admin.twig
+++ b/plugins/Morpheus/templates/admin.twig
@@ -24,8 +24,13 @@
<!--[if (gte IE 9)|!(IE)]><!-->
<body ng-app="app" class="{{ postEvent('Template.bodyClass', 'admin') }}"><!--<![endif]-->
- {% set topMenuModule = 'CoreAdminHome' %}
- {% set topMenuAction = 'generalSettings' %}
+ {% if isSuperUser %}
+ {% set topMenuModule = 'CoreAdminHome' %}
+ {% set topMenuAction = 'generalSettings' %}
+ {% else %}
+ {% set topMenuModule = 'PrivacyManager' %}
+ {% set topMenuAction = 'privacySettings' %}
+ {% endif %}
{% include "_iframeBuster.twig" %}
{% include "@CoreHome/_javaScriptDisabled.twig" %}