From 907fcac60441b7bccccad1bd2dae2094248ed991 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Wed, 31 Jul 2024 23:01:41 +0300 Subject: [PATCH] Fix to hide changelog button in dashboard unless upgrades are allowed --- authentic-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentic-lib.pl b/authentic-lib.pl index 1876fd638..98d0c666a 100644 --- a/authentic-lib.pl +++ b/authentic-lib.pl @@ -1848,7 +1848,7 @@ sub get_theme_user_link my $is_hidden = (!foreign_available("webmin") && $theme_config{'settings_theme_config_admins_only_privileged'} eq 'true' ? ' hidden-force ' : undef); - my $is_hidden_link = (!&webmin_user_is_admin() ? ' hidden-force ' : undef); + my $is_hidden_link = ((!&webmin_user_is_admin() || $theme_config{'settings_upgrade_allowed'} ne 'true') ? ' hidden-force ' : undef); my $link = '/tconfig.cgi'; return '' . theme_version('versionfull') .