[Rt-commit] r12767 - in rt/branches/3.6-RELEASE: . html

falcone at bestpractical.com falcone at bestpractical.com
Fri May 30 15:22:38 EDT 2008


Author: falcone
Date: Fri May 30 15:22:10 2008
New Revision: 12767

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/etc/RT_Config.pm.in
   rt/branches/3.6-RELEASE/html/autohandler

Log:
 r33600 at ketch:  falcone | 2008-05-30 14:11:37 -0400
 * add a SelfServiceRegex config option so you can
   let Unprivileged users access things under
   RT's control but outside of /SelfService/


Modified: rt/branches/3.6-RELEASE/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.6-RELEASE/etc/RT_Config.pm.in	(original)
+++ rt/branches/3.6-RELEASE/etc/RT_Config.pm.in	Fri May 30 15:22:10 2008
@@ -360,6 +360,13 @@
 Set($WebNoAuthRegex, qr!^(?:/+NoAuth/|
                             /+REST/\d+\.\d+/NoAuth/)!x );
 
+# SelfServiceRegex - What portion of RT's URLspace should
+# be accessible to Unprivileged users
+# This does not override the redirect from /Ticket/Display.html
+# to /SelfService/Display.html when Unprivileged
+# users attempt to access ticked displays
+Set($SelfServiceRegex, qr!^(?:/+SelfService/)!x );
+
 # For message boxes, set the entry box width and what type of wrapping
 # to use.
 #

Modified: rt/branches/3.6-RELEASE/html/autohandler
==============================================================================
--- rt/branches/3.6-RELEASE/html/autohandler	(original)
+++ rt/branches/3.6-RELEASE/html/autohandler	Fri May 30 15:22:10 2008
@@ -280,7 +280,7 @@
         }
 
         # otherwise, drop the user at the SelfService default page
-        elsif ( $m->base_comp->path !~ '^(/+)SelfService/' ) {
+        elsif ( $m->base_comp->path !~ $RT::SelfServiceRegex ) {
             RT::Interface::Web::Redirect($RT::WebURL."SelfService/");
         }
         else {


More information about the Rt-commit mailing list