[dw-free] Move /icons page into S2
[commit: http://hg.dwscoalition.org/dw-free/rev/512c7df69bca]
http://bugs.dwscoalition.org/show_bug.cgi?id=1446
Add /icons to the list of pages that are viewable under the openid
journalspace.
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1446
Add /icons to the list of pages that are viewable under the openid
journalspace.
Patch by
Files modified:
- cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 07455d2fda20 -r 512c7df69bca cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm Tue Jan 25 16:34:45 2011 +0800
+++ b/cgi-bin/LJ/User.pm Tue Jan 25 16:37:35 2011 +0800
@@ -8934,10 +8934,15 @@ sub make_journal {
}
return $error->( BML::ml( 'error.purged.text' ), "410 Gone", BML::ml( 'error.purged.name' ) ) if $u->is_expunged;
+ my %valid_identity_views = (
+ read => 1,
+ res => 1,
+ icons => 1,
+ );
# FIXME: pretty this up at some point, to maybe auto-redirect to
# the external URL or something, but let's just do this for now
# res is a resource, such as an external stylesheet
- if ( $u->is_identity && ! ( $view eq "read" || $view eq "res" ) ) {
+ if ( $u->is_identity && !$valid_identity_views{$view} ) {
my $location = $u->openid_identity;
my $warning = BML::ml( 'error.nojournal.openid', { aopts => "href='$location'", id => $location } );
return $error->( $warning, "404 Not here" );
--------------------------------------------------------------------------------
