[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=3911
[commit: http://hg.dwscoalition.org/dw-free/rev/dee3a122cf42]
http://bugs.dwscoalition.org/show_bug.cgi?id=3911
In cases where entries are marked with a custom group and private, respect
the private more than the custom group. (Only happened on one community on
DW, due to special circumstances...)
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3911
In cases where entries are marked with a custom group and private, respect
the private more than the custom group. (Only happened on one community on
DW, due to special circumstances...)
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/worker/sphinx-search-gm
-------------------------------------------------------------------------------- diff -r f969a2fa13a6 -r dee3a122cf42 bin/worker/sphinx-search-gm --- a/bin/worker/sphinx-search-gm Fri Aug 26 09:17:50 2011 +0800 +++ b/bin/worker/sphinx-search-gm Fri Aug 26 10:00:49 2011 +0800 @@ -67,6 +67,11 @@ # allow public posts and anything the mask allows my @bits = ( 102, LJ::bit_breakdown( $args->{allowmask} ) ); $sx->SetFilter( 'security_bits', \@bits ); + + # private entries should only be viewable when we choose to ignore security + # this works around some data where the entry is marked in sphinx + # as being both private and having an allowmask + $sx->SetFilter( 'security_bits', [ 0 ], 1 ); } my $res = $sx->Query( $args->{query} ); --------------------------------------------------------------------------------