From 55ceda8b10a909c8f93e2b07f0cd3393eaae99b7 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 10 Oct 2018 19:13:10 +0000 Subject: [PATCH] Refresh modules after changing --- acl/index.cgi | 5 +++++ acl/save_user.cgi | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/acl/index.cgi b/acl/index.cgi index 7a4b2a1cb..36f69968c 100755 --- a/acl/index.cgi +++ b/acl/index.cgi @@ -6,6 +6,7 @@ use strict; use warnings; require './acl-lib.pl'; our (%in, %text, %config, %access, $base_remote_user); +&ReadParse(); &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1); # Fetch user and group lists, if possible @@ -219,6 +220,10 @@ if (@icons) { &icons_table(\@links, \@titles, \@icons); } +if ($in{'refresh'} && defined(&theme_post_change_modules)) { + &theme_post_change_modules(); + } + &ui_print_footer("/", $text{'index'}); # show_modules(type, who, &mods, show-global, prefix) diff --git a/acl/save_user.cgi b/acl/save_user.cgi index 6fecf776e..37bf5baff 100755 --- a/acl/save_user.cgi +++ b/acl/save_user.cgi @@ -381,5 +381,5 @@ else { &webmin_log("create", "user", $user{'name'}, \%in); } &reload_miniserv(); -&redirect(""); +&redirect("index.cgi?refresh=1");