No caching as potentially a mode can change during the call

This commit is contained in:
Ilia
2022-05-28 23:12:30 +03:00
parent 5df581e103
commit 7f2d442374

View File

@@ -12138,12 +12138,8 @@ return $u eq 'root' ||
# Returns currently logged in user mode
sub webmin_user_login_mode
{
# Cache and store mode
state $mode;
return $mode
if ($mode);
$mode = 'root';
# Default mode
my $mode = 'root';
# Check for foreign modules
my $foreign_virtual_server