wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r7302: LJSUP-4267.

Committer: wisest-owl
LJSUP-4267.
1. Remove unused $dbh
2. Fix check_priv for "admin:vgift"


U   trunk/cgi-bin/LJ/Pay/ShopVGift.pm
U   trunk/htdocs/admin/vgift/edit.bml
Modified: trunk/cgi-bin/LJ/Pay/ShopVGift.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/ShopVGift.pm	2009-05-14 19:45:51 UTC (rev 7301)
+++ trunk/cgi-bin/LJ/Pay/ShopVGift.pm	2009-05-15 04:03:08 UTC (rev 7302)
@@ -13,7 +13,6 @@
 sub new {
     my ($class, %args) = @_;
 
-    my $dbh = LJ::get_db_reader();
     my $vgift = ();
     my $all_vgifts = get_all_vgifts ();
     if ($args{name}) {

Modified: trunk/htdocs/admin/vgift/edit.bml
===================================================================
--- trunk/htdocs/admin/vgift/edit.bml	2009-05-14 19:45:51 UTC (rev 7301)
+++ trunk/htdocs/admin/vgift/edit.bml	2009-05-15 04:03:08 UTC (rev 7302)
@@ -13,7 +13,7 @@
 my $remote = LJ::get_remote();
 return "<b>Error:</b> not logged in" unless $remote;
 return "<b>Error:</b> no access"
-    unless $LJ::IS_DEV_SERVER || LJ::check_priv($remote, "admin", "*");
+    unless $LJ::IS_DEV_SERVER || LJ::check_priv($remote, "admin", "vgift");
 
 $mode ||= "intro";
 

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 

  • 1 comment