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

[ljcom] r9401: LJSUP-6619

Committer: gprochaev
LJSUP-6619

U   trunk/bin/upgrading/en_LJ.dat
U   trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2010-08-26 04:00:01 UTC (rev 9400)
+++ trunk/bin/upgrading/en_LJ.dat	2010-08-26 04:50:32 UTC (rev 9401)
@@ -5226,6 +5226,8 @@
 
 shop.error.userhead.nothing_selected=You didn't select the userhead
 
+shop.error.userhead.not_access=suspended, purged, deleted and memorial not available to buy userhead
+
 shop.error.global.cannot_load_cart=Cannot load cart
 
 shop.error.global.not_your_cart=You are trying to view someone other's cart, and you can't do that. Try <a href="/shop/?cart=new">creating a new one</a>.

Modified: trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm	2010-08-26 04:00:01 UTC (rev 9400)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm	2010-08-26 04:50:32 UTC (rev 9401)
@@ -91,6 +91,8 @@
         ? LJ::load_user(LJ::Request->get_param('giftto'))
         : LJ::get_remote();
 
+    $self->raise_errors(LJ::Lang::ml('shop.error.userhead.not_access')) if $recipient && !$recipient->is_visible;
+
     die "Unknown recipient" unless $recipient;
 
     my $cart = $self->try_get_cart;

Tags: dat, ljcom, pm, wisest-owl
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