ispman/lib/CustomerMan UserMan.pm,1.7,1.8

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib/CustomerMan
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20911

Modified Files:
	UserMan.pm 
Log Message:
honoring negative limit to allow unlimited users


Index: UserMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/CustomerMan/UserMan.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- UserMan.pm	16 Apr 2004 20:51:34 -0000	1.7
+++ UserMan.pm	27 Apr 2004 22:17:23 -0000	1.8
@@ -30,7 +30,7 @@
    my @errors=();
    
    
-   if ($domainUsers >= $domainInfo->{'ispmanMaxAccounts'}) {
+   if ($domainInfo->{'ispmanMaxAccounts'}>0 && $domainUsers >= $domainInfo->{'ispmanMaxAccounts'}) {
       push @errors, "Accounts limit exceeded. <br>Your Accounts limit is $domainInfo->{'ispmanMaxAccounts'}<br> You cannot create any more accounts";
    }
 



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.