Ignore:
Timestamp:
03/25/11 14:29:37 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1693 - Resolvendo inconsistencia ao adicionar quota por OU ao filemanager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoAdmin1_2/inc/class.bosectors.inc.php

    r3887 r3915  
    145145                                || (isset($_POST['users_quota']) )  
    146146                                || (isset($_POST['file_manager_quota']) )) { //se for passado alguma coisa, lógico 
     147                                 
     148                                $file_manager_space = $this->functions->get_actual_disk_usage($_POST["context"],'FileManager'); 
     149                                if($_POST["file_manager_quota"]<$file_manager_space){ 
     150                                        $_POST['error_messages'] = lang("Theres more disk space in use than the quota. It needs to be more than %1 MB",$file_manager_space); 
     151                                        $_GET['context'] = $_POST["context"]; 
     152                                        ExecMethod('expressoAdmin1_2.uisectors.edit_sector'); 
     153                                        return false; 
     154                                } 
     155                                 
    147156                                if(!$controlled_by_quota) { 
    148157                                        $ldap_mod_add['objectClass'][] = 'phpgwQuotaControlled'; 
Note: See TracChangeset for help on using the changeset viewer.