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,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;
|
||||
|
|
Loading…
Reference in New Issue