madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20783: LJSUP-10315: Problems with access to adm...

Committer: sbelyaev
LJSUP-10315: Problems with access to admin/topentries.bml
U   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;

Tags: livejournal, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments