latham
2011-05-25 f99b37f56dad8e3a1f844f8d3b33ee1ba4b86d62
interface/web/mail/mail_domain_catchall_edit.php
@@ -55,17 +55,11 @@
      
      // we will check only users, not admins
      if($_SESSION["s"]["user"]["typ"] == 'user') {
         // Get the limits of the client
         $client_group_id = $_SESSION["s"]["user"]["default_group"];
         $client = $app->db->queryOneRecord("SELECT limit_mailcatchall FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
         // Check if the user may add another mailbox.
         if($client["limit_mailforward"] >= 0) {
            $tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE sys_groupid = $client_group_id and type = 'catchall'");
            if($tmp["number"] >= $client["limit_mailcatchall"]) {
               $app->error($app->tform->wordbook["limit_mailcatchall_txt"]);
            }
         if(!$app->tform->checkClientLimit('limit_mailcatchall',"type = 'catchall'")) {
            $app->error($app->tform->wordbook["limit_mailcatchall_txt"]);
         }
         if(!$app->tform->checkResellerLimit('limit_mailcatchall',"type = 'catchall'")) {
            $app->error('Reseller: '.$app->tform->wordbook["limit_mailcatchall_txt"]);
         }
      }