made module ready even if no script path is set, solves blocking new users/groups

This commit is contained in:
Roland Gruber 2005-09-13 17:20:07 +00:00
parent f60d4ac411
commit ef8fc73d78
1 changed files with 2 additions and 3 deletions

View File

@ -161,7 +161,6 @@ 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;