X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/27aca87f2e446e4640752dfb60cea9d260cec552..79ffa7719bedd98ba94a37c1217dbafe56ea1a72:/lib/proc.lib.php diff --git a/lib/proc.lib.php b/lib/proc.lib.php index f9ebc8d..adf8252 100644 --- a/lib/proc.lib.php +++ b/lib/proc.lib.php @@ -1,4 +1,7 @@ getUsername(); $uname = str_replace('.','',$uname); $dbname = $uname.DELIMETER.$i_newdb; - if ($User->isOverQuota()) { + if ($User->isOverQuota() && !isAdmin()) { $err1[] = 'You are over your quota. You may not add more databases.'; - } elseif (count($User->getDBList())>MAXDBS) { + } elseif (count($User->getDBList())>MAXDBS && !isAdmin()) { $err1[] = 'You have too many databases. You may not add more databases.'; } elseif (empty($i_newdb)) { $err1[] = 'Your database name may not be empty.';