juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18157: LJSUP-7445 Try & buy

Committer: iaskarov
LJSUP-7445 Try & buy
U   trunk/cgi-bin/LJ/SiteMessages.pm
Modified: trunk/cgi-bin/LJ/SiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/SiteMessages.pm	2011-01-31 10:26:01 UTC (rev 18156)
+++ trunk/cgi-bin/LJ/SiteMessages.pm	2011-01-31 10:30:44 UTC (rev 18157)
@@ -3,14 +3,15 @@
 use Carp qw(croak);
 
 use constant AccountMask => { 
-    Permanent => 1,
-    Sponsored => 2,
-    Paid      => 4,
-    Plus      => 8,
-    Basic     => 16,
-    SUP       => 32,
-    NonSUP    => 64,
-    OfficeOnly => 128,
+    Permanent   => 1,
+    Sponsored   => 2,
+    Paid        => 4,
+    Plus        => 8,
+    Basic       => 16,
+    SUP         => 32,
+    NonSUP      => 64,
+    OfficeOnly  => 128,
+    TryNBuy     => 256,
 };
 
 sub get_user_class {
@@ -19,6 +20,7 @@
 
     return AccountMask->{Permanent} if $u->in_class('perm');
     return AccountMask->{Sponsored} if $u->in_class('sponsored');
+    return AccountMask->{TryNBuy} if $u->get_cap('trynbuy');    # TryNBuy should go before Paid
     return AccountMask->{Paid} if $u->get_cap('paid');
     return AccountMask->{Plus} if $u->in_class('plus');
     return AccountMask->{Basic};

Tags: juks, livejournal, 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