Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r12488: LJSUP-12967 (Allow SB for basic users)

Committer: ailyin
LJSUP-12967 (Allow SB for basic users)
U   trunk/cgi-bin/LJ/Hooks/Caps.pm
Modified: trunk/cgi-bin/LJ/Hooks/Caps.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Caps.pm	2012-08-17 14:26:18 UTC (rev 12487)
+++ trunk/cgi-bin/LJ/Hooks/Caps.pm	2012-08-17 14:37:49 UTC (rev 12488)
@@ -108,7 +108,11 @@
     my $dbr = LJ::get_db_reader();
     my $size = $dbr->selectrow_array("SELECT size FROM paidexp WHERE userid=? AND item='diskquota' AND expdate > NOW()",
                                      undef, $u->{'userid'});
-    return $size || undef;
+    return $size if $size;
+
+    return 0 unless $u->is_personal;
+
+    return;
 });
 
 LJ::register_hook("check_cap_userpics", sub {

Tags: ailyin, andy, 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