From 7f2d4423742fa58d1dfea02c20c50163f7d66793 Mon Sep 17 00:00:00 2001 From: Ilia Date: Sat, 28 May 2022 23:12:30 +0300 Subject: [PATCH] No caching as potentially a mode can change during the call --- web-lib-funcs.pl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index b9cebdb86..ba9009352 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -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