Marius Cramer
2015-01-08 89e4329a8068e3631d3f64f6896fa3907c687cf5
interface/lib/classes/remote.d/mail.inc.php
@@ -215,8 +215,8 @@
      }
      //* Set a few params to non empty values that will be overwritten by mail_plugin
      if (!isset($params['uid'])) $params['uid'] = 999989999;
      if (!isset($params['gid'])) $params['gid'] = 999989999;
      if (!isset($params['uid'])) $params['uid'] = -1;
      if (!isset($params['gid'])) $params['gid'] = -1;
      $affected_rows = $this->insertQuery('../mail/form/mail_user.tform.php', $client_id, $params);
      return $affected_rows;
@@ -1024,6 +1024,19 @@
      }
   }
   //** quota functions -----------------------------------------------------------------------------------
   public function mailquota_get_by_user($session_id, $client_id)
   {
      global $app;
      $app->uses('quota_lib');
      if(!$this->checkPerm($session_id, 'mailquota_get_by_user')) {
         $this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
         return false;
      }
      return $app->quota_lib->get_mailquota_data($client_id, false);
   }
}