Fix for my fix: we want to enter the block, even if we're logged out 
(remote is undef), because this block culls tags that we're not allowed to see.

        Patch by fu. 

diffs (15 lines):

diff -r 3bb29d1ff2e6 -r ca80e1825d70 cgi-bin/LJ/Tags.pm
--- a/cgi-bin/LJ/Tags.pm        Tue Jun 22 17:22:31 2010 +0800
+++ b/cgi-bin/LJ/Tags.pm        Tue Jun 22 17:39:44 2010 +0800
@@ -290,9 +290,9 @@ sub get_usertags {
 
     # now if they provided a remote, remove the ones they don't want to see; 
note that
     # remote may be undef so we have to check exists
-    if ( exists $opts->{remote} && LJ::isu( $opts->{remote} ) ) {
+    if ( exists $opts->{remote} ) {
         # never going to cull anything if you control it, so just return
-        return $res if $opts->{remote}->can_manage( $u );
+        return $res if LJ::isu( $opts->{remote} ) && 
$opts->{remote}->can_manage( $u );
 
         # setup helper variables from u to remote
         my ($trusted, $grpmask) = (0, 0);
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to