If the user is can manage the community ( is an admin ), then they can
also see all entries.
Patch by fu.
diffs (12 lines):
diff -r 3c681263afac -r 713fd8cfe3bc cgi-bin/LJ/Entry.pm
--- a/cgi-bin/LJ/Entry.pm Sat Jan 01 18:27:25 2011 +0800
+++ b/cgi-bin/LJ/Entry.pm Sat Jan 01 18:47:11 2011 +0800
@@ -1658,7 +1658,7 @@ sub get_itemid_near2 {
my $remote = LJ::get_remote();
if ($remote) {
- if ( $remote->equals( $u ) ) {
+ if ( $remote->equals( $u ) || ( $u->is_community &&
$remote->can_manage( $u ) ) ) {
$secwhere = ""; # see everything
} elsif ( $remote->is_individual ) {
my $gmask = $u->is_community ? $remote->member_of( $u ) :
$u->trustmask( $remote );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog