madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r10738: LJSV-1460: 2)Try&Buy accounts now is abl...

Committer: sbelyaev
LJSV-1460: 2)Try&Buy accounts now is able to use 'View in my style'.
U   trunk/cgi-bin/LJ/Hooks/Settings.pm
Modified: trunk/cgi-bin/LJ/Hooks/Settings.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Settings.pm	2011-07-05 08:24:57 UTC (rev 10737)
+++ trunk/cgi-bin/LJ/Hooks/Settings.pm	2011-07-06 05:10:48 UTC (rev 10738)
@@ -47,7 +47,8 @@
 
 LJ::register_hook('can_use_stylealwaysmine', sub {
     my $u = shift;
-    return $u->in_class('paid') ? 1 : 0;
+    my $can_use = LJ::TryNBuy->active($u) || $u->in_class('paid');
+    return $can_use ? 1 : 0;
 });
 
 LJ::register_hook('settings_extra_cats', sub {

Tags: ljcom, madeon, 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