[livejournal] r20783: LJSUP-10315: Problems with access to adm...
Committer: sbelyaev
LJSUP-10315: Problems with access to admin/topentries.bmlU trunk/cgi-bin/LJ/TopEntries.pm
Modified: trunk/cgi-bin/LJ/TopEntries.pm
===================================================================
--- trunk/cgi-bin/LJ/TopEntries.pm 2011-12-14 13:42:39 UTC (rev 20782)
+++ trunk/cgi-bin/LJ/TopEntries.pm 2011-12-14 13:47:04 UTC (rev 20783)
@@ -91,7 +91,7 @@
my $class = shift;
my $u = shift;
- return () unless LJ::check_priv($u, "siteadmin", "topentries");
+ return @order if LJ::check_priv($u, "siteadmin", "topentries");
my @result;
@@ -100,8 +100,7 @@
$comm_name = $candidate unless $comm_name;
my $comm = LJ::load_user($comm_name);
my $allow_access = LJ::check_rel($comm, $u, 'S') ||
- LJ::check_rel($comm, $u, 'A') ||
- LJ::check_rel($comm, $u, 'M');
+ LJ::check_rel($comm, $u, 'A');
next unless $allow_access;
next unless $comm;
