fixed login problems
This commit is contained in:
parent
8e034e05f3
commit
aba6954571
|
@ -43,7 +43,9 @@ class account extends baseModule {
|
|||
* @return array array with meta data
|
||||
*/
|
||||
function get_metaData() {
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue