From 9bc7583711fbbb0554f680945826790178a0211e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 5 May 2021 15:45:16 +0200 Subject: [PATCH] * AD/Login: fix login always reports "account is expired", if account-selection "group-members" is set for AD --- api/src/Accounts/Ads.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Accounts/Ads.php b/api/src/Accounts/Ads.php index 90905d17ad..a3a0623000 100644 --- a/api/src/Accounts/Ads.php +++ b/api/src/Accounts/Ads.php @@ -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 .= '(|';