Skip to content

Commit

Permalink
Fix to hide changelog button in dashboard unless upgrades are allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jul 31, 2024
1 parent 2ea1948 commit 907fcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentic-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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') .
Expand Down

0 comments on commit 907fcac

Please sign in to comment.