Skip to content

Commit 167589f

Browse files
committed
Fix to display user mode identically
1 parent b17df98 commit 167589f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

buttons.pm

+5-3
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,18 @@ if (($get_user_level eq '0' && $theme_config{'settings_theme_options_button'} ne
7575

7676
print '<li class="user-link">';
7777
my $foreign_acl = &foreign_available("acl");
78+
my $user_mode = get_product_name() eq 'usermin';
7879
my $edit_user = ($foreign_acl ? ("<hr class='hr-no-margin hr-darker'>" . $theme_text{'theme_tooltip_edit_user'}) : undef);
7980
my $title_proc;
80-
if ($mode_status && $mode_status !~ /^\d+$/) {
81+
if (!$user_mode && $mode_status && $mode_status !~ /^\d+$/) {
8182
$title_proc = $mode_status . $edit_user;
8283
} else {
8384
$title_proc =
8485
$foreign_acl ? $theme_text{'theme_tooltip_edit_user'} :
85-
(get_product_name() eq 'usermin' ?
86+
( get_product_name() eq 'usermin' ?
8687
"<span><strong>$theme_text{'theme_global_access_level'}</strong>:&nbsp;&nbsp;<em>$theme_text{'theme_global_user_mode'}</em></span>"
87-
: undef);
88+
:
89+
undef);
8890
}
8991
my $user_title = get_button_tooltip($title_proc, undef, 'auto top', 1, undef, "aside .user-link");
9092

theme.info

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
desc=Authentic Theme
22
longdesc=Webmin/Usermin/Virtualmin/Cloudmin theme based on Bootstrap and Font Awesome (https://github.com/authentic-theme/authentic-theme)
33
version=19.38
4-
mversion=28
4+
mversion=29
55
depends=1.910 1.760
66
webmin=1
77
usermin=1

0 commit comments

Comments
 (0)