made module ready even if no script path is set, solves blocking new users/groups
This commit is contained in:
parent
f60d4ac411
commit
ef8fc73d78
|
@ -161,11 +161,10 @@ class quota extends baseModule {
|
||||||
var $quota;
|
var $quota;
|
||||||
|
|
||||||
function module_ready() {
|
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=='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;
|
if ($_SESSION[$this->base]->type=='group' && $_SESSION[$this->base]->module['posixGroup']->attributes['cn'][0]=='') return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This functions return true
|
/* This functions return true
|
||||||
* if all needed settings are done
|
* if all needed settings are done
|
||||||
|
@ -173,7 +172,7 @@ class quota extends baseModule {
|
||||||
function module_complete() {
|
function module_complete() {
|
||||||
if (!$this->module_ready()) return false;
|
if (!$this->module_ready()) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function returns a list of all html-pages in module
|
/* This function returns a list of all html-pages in module
|
||||||
* This is usefull for mass upload and pdf-files
|
* This is usefull for mass upload and pdf-files
|
||||||
|
|
Loading…
Reference in New Issue