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:36 +00:00
parent dc472cdb11
commit 3dc11e4037

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)