[Bps-public-commit] r20181 - RT-BugTracker-Public/html/Public

ruz at bestpractical.com ruz at bestpractical.com
Wed Dec 2 04:09:19 EST 2009


Author: ruz
Date: Wed Dec  2 04:09:19 2009
New Revision: 20181

Modified:
   RT-BugTracker-Public/html/Public/autohandler

Log:
* use public user detector from the lib

Modified: RT-BugTracker-Public/html/Public/autohandler
==============================================================================
--- RT-BugTracker-Public/html/Public/autohandler	(original)
+++ RT-BugTracker-Public/html/Public/autohandler	Wed Dec  2 04:09:19 2009
@@ -1,9 +1,5 @@
 <%INIT>
-return $m->call_next if
-       !$session{'CurrentUser'} || !$session{'CurrentUser'}->id
-    || $session{'CurrentUser'}->Name eq ($RT::WebPublicUser||'')
-    || defined $session{'BitcardUser'}
-    || defined $session{'CurrentUser'}->{'OpenID'};
+return $m->call_next if RT::BugTracker::Public->IsPublicUser;
 
 $RT::Logger->debug("Not a public user, not BitCard, not Openid. Going to redirect to main URL");
 # This is not a public user



More information about the Bps-public-commit mailing list