Первый фоллен на хелле (wildkin) wrote in changelog,
Первый фоллен на хелле
wildkin
changelog

[ljcom] r11348: LJSUP-8645: Log to statushistory all cha...

Committer: dnikolaev
LJSUP-8645: Log to statushistory all changes of 'no_rating' field.

U   trunk/cgi-bin/LJ/SUP.pm
Modified: trunk/cgi-bin/LJ/SUP.pm
===================================================================
--- trunk/cgi-bin/LJ/SUP.pm	2012-01-24 12:18:21 UTC (rev 11347)
+++ trunk/cgi-bin/LJ/SUP.pm	2012-01-24 12:21:22 UTC (rev 11348)
@@ -29,6 +29,12 @@
     return $u && $u->in_class('sup_user') && !$u->in_class('sup_optout');
 }
 
+sub is_sup_enabled_caps
+{
+    my $class = shift;
+    my $caps = shift;
+    return LJ::caps_in_group($caps, 'sup_user') && !LJ::caps_in_group($caps, 'sup_optout');
+}
 
 # Returns 2-letter name of language, if this language is SUP one
 # (Russian, Ukranian, etc..), or undef, if it's not.

Tags: dnikolaev, ljcom, pm, wildkin
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