diff options
author | Peter Boehlke <project-management@media-proweb.de> | 2017-11-13 21:46:32 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2017-11-13 21:46:32 +0300 |
commit | 4fc3de649fbab314a920687634d9d365f64ccb2e (patch) | |
tree | 34bf1a93eea7930689d495055271f271326ec307 /plugins/CoreHome/templates/_headerMessage.twig | |
parent | 3fc7101005c4432d35404072b9eb3c7044a6c9e4 (diff) |
Show update notification to super users only (#12224)
* Introduce config setting to show update notifications to superusers only. Fixes #7930
* By default, all users should see the update notification
* Changed description of config param
* Updates changelog
Diffstat (limited to 'plugins/CoreHome/templates/_headerMessage.twig')
-rw-r--r-- | plugins/CoreHome/templates/_headerMessage.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/_headerMessage.twig b/plugins/CoreHome/templates/_headerMessage.twig index d8ba304354..323383ad55 100644 --- a/plugins/CoreHome/templates/_headerMessage.twig +++ b/plugins/CoreHome/templates/_headerMessage.twig @@ -10,7 +10,7 @@ </span> {% endset %} -{% if (latest_version_available and not isPiwikDemo and hasSomeViewAccess and not isUserIsAnonymous) or (isSuperUser and isAdminArea is defined and isAdminArea) %} +{% if (latest_version_available and not isPiwikDemo and hasSomeViewAccess and not isUserIsAnonymous and showUpdateNotificationToUser) or (isSuperUser and isAdminArea is defined and isAdminArea) %} <div piwik-expand-on-hover id="header_message" class="piwikSelector borderedControl {% if not latest_version_available %}header_info{% else %}{% endif %} piwikTopControl {% if latest_version_available %}update_available{% endif %}" |