[Jifty-commit] r4770 - in jifty/trunk: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Dec 24 20:22:53 EST 2007


Author: trs
Date: Mon Dec 24 20:22:52 2007
New Revision: 4770

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Quota/Model/Quota.pm

Log:
 r29355 at zot:  tom | 2007-12-24 20:22:42 -0500
 Bypass ACLs to check


Modified: jifty/trunk/lib/Jifty/Plugin/Quota/Model/Quota.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Quota/Model/Quota.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Quota/Model/Quota.pm	Mon Dec 24 20:22:52 2007
@@ -57,7 +57,7 @@
         if not defined $args{usage};
 
     # XXX TODO: This should be in the schema, but we can't do that at the moment
-    my $check = Jifty::Plugin::Quota::Model::Quota->new;
+    my $check = Jifty::Plugin::Quota::Model::Quota->new( current_user => Jifty->app_class('CurrentUser')->superuser );
     $check->load_by_cols(
         object_id    => $args{object_id},
         object_class => $args{object_class},


More information about the Jifty-commit mailing list