From 69bc09673c96ac6317df541df12e86584aaa1761 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Thu, 10 Dec 2015 00:47:03 +0000 Subject: fixes #4314 Don't let "admin" users see all other users in Piwik --- plugins/UsersManager/templates/index.twig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'plugins/UsersManager/templates/index.twig') diff --git a/plugins/UsersManager/templates/index.twig b/plugins/UsersManager/templates/index.twig index 6bf12d01e0..9ce934ec18 100644 --- a/plugins/UsersManager/templates/index.twig +++ b/plugins/UsersManager/templates/index.twig @@ -55,6 +55,7 @@ {% set accesInvalid %}{% endset %} {% set superUserAccess %}N/A{% endset %} {% for login,access in usersAccessByWebsite %} + {% if userIsSuperUser or (hasOnlyAdminAccess and access!='noaccess') %} {{ login }} {{ usersAliasByLogin[login]|raw }} @@ -84,12 +85,34 @@ {% endif %} + {% endif %} {% endfor %}
+{% if hasOnlyAdminAccess %} +

+ +

+
+
+ +
+ + +
+ {{ ajax.errorDiv('ajaxErrorGiveViewAccess') }} + {{ ajax.loadingDiv('ajaxLoadingGiveViewAccess') }} +{% endif %} +

{{ 'UsersManager_ChangeAllConfirm'|translate("")|raw }}

-- cgit v1.2.3