Permalink
Browse files

Update top-level CGIs to support usermin

  • Loading branch information...
1 parent 5786965 commit 6961e49899080a947663e203ac31b1c0ef7d0a19 @jcameron jcameron committed Apr 27, 2010
Showing with 15 additions and 0 deletions.
  1. +3 −0 chooser.cgi
  2. +3 −0 feedback.cgi
  3. +3 −0 feedback_form.cgi
  4. +3 −0 group_chooser.cgi
  5. +3 −0 user_chooser.cgi
View
@@ -18,6 +18,9 @@ use WebminCore;
$trust_unknown_referers = 1;
&init_config();
+if (&get_product_name() eq 'usermin') {
+ &switch_to_remote_user();
+ }
%access = &get_module_acl();
# Work out root directory
View
@@ -5,6 +5,9 @@ BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
+if (&get_product_name() eq 'usermin') {
+ &switch_to_remote_user();
+ }
&ReadParseMime();
&error_setup($text{'feedback_err'});
%access = &get_module_acl();
View
@@ -6,6 +6,9 @@ BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
+if (&get_product_name() eq 'usermin') {
+ &switch_to_remote_user();
+ }
&ReadParse();
&error_setup($text{'feedback_err'});
%access = &get_module_acl();
View
@@ -7,6 +7,9 @@ use WebminCore;
$trust_unknown_referers = 1;
&init_config();
+if (&get_product_name() eq 'usermin') {
+ &switch_to_remote_user();
+ }
&ReadParse(undef, undef, 2);
%access = &get_module_acl();
View
@@ -7,6 +7,9 @@ use WebminCore;
$trust_unknown_referers = 1;
&init_config();
+if (&get_product_name() eq 'usermin') {
+ &switch_to_remote_user();
+ }
&ReadParse(undef, undef, 2);
%access = &get_module_acl();

0 comments on commit 6961e49

Please sign in to comment.