Committer: ailyin
LJSUP-14465 (Increase moderation queue (entries) for lj-grants community)U trunk/cgi-bin/LJ/Hooks/Caps.pm
Modified: trunk/cgi-bin/LJ/Hooks/Caps.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/Caps.pm 2012-12-03 15:12:58 UTC (rev 12984) +++ trunk/cgi-bin/LJ/Hooks/Caps.pm 2012-12-04 06:44:37 UTC (rev 12985) @@ -232,4 +232,14 @@ return $opts{url_only} ? $upgrade_link : "<a href='$upgrade_link'>$upgrade_img</a>"; }); +LJ::register_hook( 'check_cap_mod_queue', sub { + my ( $u, $opts ) = @_; + + if ( my $cap_val = $LJ::SPECIAL_MOD_QUEUE_LIMIT{ $u->username } ) { + return $cap_val; + } + + return; +} ); + 1;