* AD/Login: fix login always reports "account is expired", if account-selection "group-members" is set for AD

This commit is contained in:
Ralf Becker 2021-05-05 15:45:16 +02:00
parent c1fa751f5d
commit a218faf73e

View File

@ -1090,6 +1090,7 @@ class Ads
}
// for non-admins and account_selection "groupmembers" we have to filter by memberOf attribute
if ($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] === 'groupmembers' &&
isset($GLOBALS['egw_info']['user']['account_id']) && // only use groupmembers, if we have a user context (stalls login otherwise!)
(!isset($GLOBALS['egw_info']['user']['apps']['admin'])))
{
$type_filter .= '(|';