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