diff --git a/lam/docs/devel/mod_accountPages.htm b/lam/docs/devel/mod_accountPages.htm
index f7d56ec4..cc3cb440 100644
--- a/lam/docs/devel/mod_accountPages.htm
+++ b/lam/docs/devel/mod_accountPages.htm
@@ -271,11 +271,16 @@ $this->inputCorrect = true;
-
/** used for
-account pages, true if input data is correct */ - var -$inputCorrect = true; - - /** - * This function returns true if all needed settings -are done. - */ - function module_complete() { - return $this->inputCorrect; - } - - /** - * Returns true if all settings on module page are -correct. + | /** + * This function is used to check if this module page +can be displayed. + * It returns false if a module depends on data from +other modules which was not yet entered. + * + * @return boolean true, if page can be displayed */ function module_ready() { - return $this->inputCorrect; + if +($_SESSION[$this->base]->module['posixAccount']->attributes['gidNumber'][0]=='') +return false; + if +($_SESSION[$this->base]->module['posixAccount']->attributes['uidNumber'][0]=='') +return false; + if +($this->attributes['uid'][0]=='') return false; + return true; } + + /** + * This functions is used to check if all settings +for this module have been made. + * + * @return boolean true, if settings are complete + */ + function module_complete() { + if (!$this->module_ready()) +return false; + if +($this->attributes['sambaSID'][0] == '') return false; + return true; + } + |