[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=2495
[commit: http://hg.dwscoalition.org/dw-free/rev/187e531dbfb9]
http://bugs.dwscoalition.org/show_bug.cgi?id=2495
Only show the 'locked' icon to non-owners, don't show the 'protected' icon.
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2495
Only show the 'locked' icon to non-owners, don't show the 'protected' icon.
Patch by
Files modified:
- htdocs/search.bml
--------------------------------------------------------------------------------
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'>",
--------------------------------------------------------------------------------
