summaryrefslogtreecommitdiff
path: root/htetc
diff options
context:
space:
mode:
Diffstat (limited to 'htetc')
-rw-r--r--htetc/handler.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 92564350e..a4517e66a 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -289,16 +289,20 @@ sub handler
};
- #is this conditional a bad idea entirely, hmm
- unless (
- $HTML::Mason::r->filename =~ /\/rt\/.*NoAuth/ #RT images/JS
- && $HTML::Mason::r->filename !~ /\/rt\/REST\// #but NOT mail gw
- ) {
+ if ( $HTML::Mason::r->filename !~ /\/rt\/.*NoAuth/ ) { #not RT images/JS
+
$cgi = new CGI;
&cgisuidsetup($cgi);
#&cgisuidsetup($r);
$p = popurl(2);
$fsurl = rooturl();
+
+ } elsif ( $HTML::Mason::r->filename =~ /\/rt\/REST\/.*NoAuth/ ) {
+
+ #need to log somebody in for the mail gw
+ #&adminsuidsetup('fs_selfservice'); #old installs w/'fs_selfserv'??
+ &adminsuidsetup('fs_queue');
+
}
sub include {