fixed login problems

This commit is contained in:
Roland Gruber 2005-08-13 16:38:56 +00:00
parent 8e034e05f3
commit aba6954571
1 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,9 @@ class account extends baseModule {
* @return array array with meta data
*/
function get_metaData() {
$modules = $_SESSION['config']->get_AccountModules($this->get_scope());
if ($_SESSION['loggedIn']) {
$modules = $_SESSION['config']->get_AccountModules($this->get_scope());
}
$return = array();
// manages host accounts
$return["account_types"] = array("host", "user");
@ -61,7 +63,7 @@ class account extends baseModule {
$return['PDF_fields'] = array(
'description'
);
if (!in_array('posixAccount', $modules)) {
if ($_SESSION['loggedIn'] && !in_array('posixAccount', $modules)) {
$return['PDF_fields'][] = 'uid';
}
// help Entries