juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10049: LJSUP-7938: TrynBuy

Committer: iaskarov
LJSUP-7938: TrynBuy
U   trunk/cgi-bin/LJ/Hooks/Settings.pm
Modified: trunk/cgi-bin/LJ/Hooks/Settings.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Settings.pm	2011-02-16 05:06:20 UTC (rev 10048)
+++ trunk/cgi-bin/LJ/Hooks/Settings.pm	2011-02-16 05:22:24 UTC (rev 10049)
@@ -54,7 +54,7 @@
 
     $cats_with_settings->{advertising} = {
         name => LJ::Lang::ml('ljcom.settings.cat.advertising'),
-        visible => !$u || !$u->in_class("paid") || $u->in_class("force_ads") ? 1 : 0,
+        visible => !$u || !$u->in_class("paid") && !LJ::TryNBuy->active($u) || $u->in_class("force_ads") ? 1 : 0,
         disabled => !$u ? 1 : 0,
         form => 1,
         desc => LJ::Lang::ml('ljcom.settings.cat.advertising.desc'),

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