[Bps-public-commit] RT-BugTracker-Public branch, rt4, updated. f541317223a8ad5311eab3a8206f26361ae5f31c
Thomas Sibley
trs at bestpractical.com
Fri Mar 8 16:54:37 EST 2013
The branch, rt4 has been updated
via f541317223a8ad5311eab3a8206f26361ae5f31c (commit)
from 7aae5a1860b4b7d1cebc0219ee282a82b4c8e526 (commit)
Summary of changes:
html/Callbacks/BugTracker-Public/autohandler/Auth | 5 +++++
1 file changed, 5 insertions(+)
- Log -----------------------------------------------------------------
commit f541317223a8ad5311eab3a8206f26361ae5f31c
Author: Thomas Sibley <trs at bestpractical.com>
Date: Fri Mar 8 13:53:34 2013 -0800
Don't redirect just-logged-out privileged users to /Public/
Fixes a bad redirect introduced by eff9888.
diff --git a/html/Callbacks/BugTracker-Public/autohandler/Auth b/html/Callbacks/BugTracker-Public/autohandler/Auth
index bb6bca6..0269754 100644
--- a/html/Callbacks/BugTracker-Public/autohandler/Auth
+++ b/html/Callbacks/BugTracker-Public/autohandler/Auth
@@ -58,6 +58,11 @@ if ( not ($session{'CurrentUser'} and $session{'CurrentUser'}->id)
Path => $path,
ARGS => \%ARGS,
);
+
+ # We only care if the public equivalent is a page and not the top-level.
+ undef $has_public_equiv
+ if $has_public_equiv eq "/Public/";
+
if ( $path =~ m{ ^/+Public/ }x or $has_public_equiv ) {
my $cu = new RT::CurrentUser;
$cu->LoadByName( $RT::WebPublicUser );
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list