[vhffs-dev] [1170] Setting a quota value below the used value is a good way to force a user to clean its data

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1170
Author:   gradator
Date:     2008-03-01 21:53:20 +0000 (Sat, 01 Mar 2008)

Log Message:
-----------
Setting a quota value below the used value is a good way to force a user to clean its data

Modified Paths:
--------------
    trunk/vhffs-panel/group/prefs.pl
    trunk/vhffs-panel/repository/prefs.pl


Modified: trunk/vhffs-panel/group/prefs.pl
===================================================================
--- trunk/vhffs-panel/group/prefs.pl	2008-03-01 01:27:41 UTC (rev 1169)
+++ trunk/vhffs-panel/group/prefs.pl	2008-03-01 21:53:20 UTC (rev 1170)
@@ -280,11 +280,6 @@
         return;
     }
 
-    if($quota < $group->get_quota_used) {
-        $panel->add_error( gettext('You have to enter a quota greater than the current used quota') );
-        return;
-    }
-
     $group->set_quota($quota);
 
     if($group->commit < 0) {

Modified: trunk/vhffs-panel/repository/prefs.pl
===================================================================
--- trunk/vhffs-panel/repository/prefs.pl	2008-03-01 01:27:41 UTC (rev 1169)
+++ trunk/vhffs-panel/repository/prefs.pl	2008-03-01 21:53:20 UTC (rev 1170)
@@ -121,10 +121,6 @@
         return;
     }
     
-    if($quota < $repo->get_quota_used) {
-        $panel->add_error( gettext('You have to enter a quota greater than the current used quota') );
-        return;
-    }
     $repo->set_quota($quota);
 
     if($repo->commit < 0) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/