holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11824: LJSUP-11857: Cyr sub domains

Committer: akanashin
LJSUP-11857: Cyr sub domains
U   trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm	2012-04-26 13:18:14 UTC (rev 11823)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/DomainRU.pm	2012-04-26 13:34:57 UTC (rev 11824)
@@ -34,16 +34,19 @@
 
     my $remote = LJ::get_remote();
     my $current = $self->authas || $remote;
+    my $form_enabled = 1;
 
     LJ::need_string('/shop/selfpromo.bml.ask_delete');
     LJ::need_string('/shop/selfpromo.bml.ask_add');
 
     unless ($remote) {
         $self->ml_warning('shop.error.domainru.warning.anon');
+        $form_enabled = 0;
     }
 
-    unless ($remote->in_class('paid') || $remote->in_class('perm')) {
+    if ($remote && $remote->is_identity) {
         $self->ml_warning('shop.error.domainru.warning.upgrade');
+        $form_enabled = 0;
     }
 
     my $buy_manage = LJ::Request->get_param('type');
@@ -71,7 +74,7 @@
         'type'             => $buy_manage ||= 'buy',
         'domains'          => $domains, 
         'total_cost'       => $LJ::Pay::Payment::PayItem::DomainRU::shop_price*LJ::Pay::Wallet::EXCHANGE_RATE,
-        'form_enabled'     => $remote ? 1 : 0,
+        'form_enabled'     => $form_enabled,
     );
     
     if ($remote) {

Tags: akanashin, holyandrew, ljcom, pm
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