Only show the 'locked' icon to non-owners, don't show the 'protected'
icon.
Patch by exor674.
diffs (14 lines):
diff -r 2324d3e50a3b -r 187e531dbfb9 htdocs/search.bml
--- a/htdocs/search.bml Tue Apr 20 02:49:34 2010 -0700
+++ b/htdocs/search.bml Tue Apr 20 09:52:42 2010 +0000
@@ -161,6 +161,10 @@ body<=
foreach my $match ( @{ $result->{matches} } ) {
my $mu = LJ::load_userid( $match->{journal_id} );
+ # Do not show filtered icon for other users
+ $match->{security} = 'access'
+ if $match->{security} eq 'usemask' && ! $mu->equals( $remote );
+
my $icon = {
public => '',
private => "<img src='$LJ::IMGPREFIX/silk/entry/private.png'>",
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog