madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22315: LJSUP-11844: Classic comments option sho...

Committer: sbelyaev
LJSUP-11844: Classic comments option should be grayed out for Basic users
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2012-06-22 13:48:00 UTC (rev 22314)
+++ trunk/cgi-bin/LJ/S2.pm	2012-06-22 14:03:07 UTC (rev 22315)
@@ -1762,6 +1762,8 @@
 sub can_use_prop
 {
     my ($u, $uniq, $prop) = @_;  # $uniq = redist_uniq value
+    my $user_basic =  LJ::run_hook("user_is_basic", $u);
+    return 0 if $prop eq 'old_s1' && $user_basic;
     return 1 if LJ::get_cap($u, "s2styles");
     return 1 if LJ::get_cap($u, "s2props");
     my $pol = get_policy();

Tags: livejournal, madeon, pm, sbelyaev
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