[Rt-commit] r3599 - in rt/branches/3.5-TESTING: . html

trs at bestpractical.com trs at bestpractical.com
Wed Aug 3 23:48:39 EDT 2005


Author: trs
Date: Wed Aug  3 23:48:39 2005
New Revision: 3599

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/autohandler
Log:
 r5613 at wintermute:  tom | 2005-08-03 23:44:18 -0400
 Nicer indenting


Modified: rt/branches/3.5-TESTING/html/autohandler
==============================================================================
--- rt/branches/3.5-TESTING/html/autohandler	(original)
+++ rt/branches/3.5-TESTING/html/autohandler	Wed Aug  3 23:48:39 2005
@@ -224,28 +224,27 @@
     $m->comp('/Elements/Callback', %ARGS);
 
     # If the user isn't privileged, they can only see SelfService
-    if (! $session{'CurrentUser'}->Privileged) {
+    if (not $session{'CurrentUser'}->Privileged) {
 
         # if the user is trying to access a ticket, redirect them
-        if ( ($m->request_comp->path =~ '^(/+)Ticket/Display.html') and
-             ($ARGS{'id'}) ) {
+        if ( $m->request_comp->path =~ '^(/+)Ticket/Display.html'
+                and $ARGS{'id'} )
+        {
             $m->comp("/SelfService/Display.html", %ARGS);
             $m->comp("/Elements/Footer", %ARGS);
             $m->abort();
         }
-
         # otherwise, drop the user at the SelfService default page
-	elsif ($m->base_comp->path !~ '^(/+)SelfService/') {
-	    $m->comp('/SelfService/index.html');
-	    $m->abort();
+    	elsif ( $m->base_comp->path !~ '^(/+)SelfService/' ) {
+            $m->comp('/SelfService/index.html');
+            $m->abort();
         }
-
         else {
-	    $m->call_next(%ARGS);
+            $m->call_next(%ARGS);
         }
     }
     else {
-	$m->call_next(%ARGS);
+        $m->call_next(%ARGS);
     }
 }
 


More information about the Rt-commit mailing list