tbrehm
2009-07-21 5bebbcba028dc0784742a9414e80dd9578584de0
Fixed: FS#776 - Client's limits do not apply for it's own client 
1 files modified
8 ■■■■■ changed files
interface/web/client/reseller_edit.php 8 ●●●●● patch | view | raw | blame | history
interface/web/client/reseller_edit.php
@@ -143,9 +143,8 @@
        
        $username = $app->db->quote($this->dataRecord["username"]);
        $password = $app->db->quote($this->dataRecord["password"]);
        $modules = ISPC_INTERFACE_MODULES_ENABLED;
        if($this->dataRecord["limit_client"] > 0) $modules .= ',client';
        $startmodule = 'mail';
        $modules = ISPC_INTERFACE_MODULES_ENABLED.',client';
        $startmodule = 'client';
        $usertheme = $app->db->quote($this->dataRecord["usertheme"]);
        $type = 'user';
        $active = 1;
@@ -195,8 +194,7 @@
        
        // reseller status changed
        if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] != $this->oldDataRecord["limit_client"]) {
            $modules = ISPC_INTERFACE_MODULES_ENABLED;
            if($this->dataRecord["limit_client"] > 0) $modules .= ',client';
            $modules = ISPC_INTERFACE_MODULES_ENABLED.',client';
            $modules = $app->db->quote($modules);
            $client_id = $this->id;
            $sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id";