Skip to content

Commit

Permalink
Hide the update info in top controls if auto update disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner committed Oct 16, 2023
1 parent 7580a3c commit 3f13175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ public function render()
$this->isMultiServerEnvironment = SettingsPiwik::isMultiServerEnvironment();
$this->isInternetEnabled = SettingsPiwik::isInternetEnabled();
$this->shouldPropagateTokenAuth = $this->shouldPropagateTokenAuthInAjaxRequests();
$this->isAutoUpdateEnabled = SettingsPiwik::isAutoUpdateEnabled();

$piwikAds = StaticContainer::get('Piwik\ProfessionalServices\Advertising');
$this->areAdsForProfessionalServicesEnabled = $piwikAds->areAdsForProfessionalServicesEnabled();
Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/_headerMessage.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% endset %}

{% if
(latest_version_available and not isPiwikDemo and hasSomeViewAccess and not isUserIsAnonymous and showUpdateNotificationToUser)
(isAutoUpdateEnabled and latest_version_available and not isPiwikDemo and hasSomeViewAccess and not isUserIsAnonymous and showUpdateNotificationToUser)
or (
isSuperUser
and (
Expand Down

0 comments on commit 3f13175

Please sign in to comment.