Also go into this path when we don't provide a specific filter get 
argument.

        Patch by fu. 

diffs (13 lines):

diff -r 638a8e216b6f -r ab6ff73650ca cgi-bin/LJ/S2/FriendsPage.pm
--- a/cgi-bin/LJ/S2/FriendsPage.pm      Sat Oct 23 10:12:01 2010 +0800
+++ b/cgi-bin/LJ/S2/FriendsPage.pm      Sat Oct 23 11:06:00 2010 +0800
@@ -132,7 +132,8 @@ sub FriendsPage
             $p->{filter_name} = $opts->{securityfilter};
     } else {
     # but we can't just use a filter, we have to make sure the person is 
allowed to
-        if ( $get->{filter} && $get->{filter} ne "0" && $cf && ( $u->equals( 
$remote ) || $cf->public ) ) {
+        if ( ( ! $get->{filter} || $get->{filter} && $get->{filter} ne "0" )
+            && $cf && ( $u->equals( $remote ) || $cf->public ) ) {
             $filter = $cf;
 
         # if we couldn't use the group, then we can throw an error, but ONLY 
IF they specified
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to