From ef8fc73d78dc925374c56c732ae2703013f97028 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 13 Sep 2005 17:20:07 +0000 Subject: [PATCH] made module ready even if no script path is set, solves blocking new users/groups --- lam/lib/modules/quota.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc index 89ebcb2c..43220cbe 100644 --- a/lam/lib/modules/quota.inc +++ b/lam/lib/modules/quota.inc @@ -161,11 +161,10 @@ class quota extends baseModule { var $quota; function module_ready() { - if (!isset($_SESSION['config']->scriptPath)) return $false; if ($_SESSION[$this->base]->type=='user' && $_SESSION[$this->base]->module['posixAccount']->attributes['uid'][0]=='') return false; if ($_SESSION[$this->base]->type=='group' && $_SESSION[$this->base]->module['posixGroup']->attributes['cn'][0]=='') return false; return true; - } + } /* This functions return true * if all needed settings are done @@ -173,7 +172,7 @@ class quota extends baseModule { function module_complete() { if (!$this->module_ready()) return false; return true; - } + } /* This function returns a list of all html-pages in module * This is usefull for mass upload and pdf-files