fixed check for extra ldap attributes to take into account current account-repository, to not show them for migrated instances

This commit is contained in:
Ralf Becker 2014-09-05 12:23:53 +00:00
parent bae6b3686f
commit 185133abe4

View File

@ -80,7 +80,10 @@ class admin_account
'loginshell' => $GLOBALS['egw_info']['server']['ldap_account_shell'],
);
}
$account['ldap_extra_attributes'] = $GLOBALS['egw_info']['server']['ldap_extra_attributes'];
// should we show extra ldap attributes home-directory and login-shell
$account['ldap_extra_attributes'] = $GLOBALS['egw_info']['server']['ldap_extra_attributes'] &&
get_class($GLOBALS['egw']->accounts) === 'accounts_ldap';
$readonlys = array();
if ($deny_edit)