arteman (arteman) wrote in changelog,
arteman
arteman
changelog

[ljcom] r11867: LJSUP-12033 Add priv for viewing paidsum...

Committer: azateev
LJSUP-12033 Add priv for viewing paidsummary
U   trunk/htdocs/admin/accounts/paidsummary.bml
Modified: trunk/htdocs/admin/accounts/paidsummary.bml
===================================================================
--- trunk/htdocs/admin/accounts/paidsummary.bml	2012-05-02 13:08:52 UTC (rev 11866)
+++ trunk/htdocs/admin/accounts/paidsummary.bml	2012-05-02 13:52:01 UTC (rev 11867)
@@ -14,7 +14,8 @@
     return "You must first <a href=\"/login.bml?ret=1\">log in</a>."
         unless $remote;
     return LJ::no_access_error("You don't have access to see this.", "moneyview", '*')
-        unless LJ::remote_has_priv($remote, "moneyview") || $LJ::IS_DEV_SERVER;
+        unless LJ::check_priv($remote, 'moneyview') || 
+               LJ::check_priv($remote, 'shopadmin', 'reports') || $LJ::IS_DEV_SERVER;
 
     # Try slow role, falling back to slave, then master (eww)
     my $dbh = LJ::get_dbh("slow", "slave", "master")

Tags: arteman, azateev, bml, ljcom
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