From 4099066a59aae6e01c292bbb90e13ea79404907b Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 24 Feb 2023 09:59:25 +0100 Subject: [PATCH] fake "Domain Users" group to now show "#-513" in case it's excluded by a filter --- api/src/Accounts.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/src/Accounts.php b/api/src/Accounts.php index f0b0b8e7b6..99f1aac756 100644 --- a/api/src/Accounts.php +++ b/api/src/Accounts.php @@ -1488,6 +1488,20 @@ class Accounts } $instance->cache_data($account_id, $account); } + // 'account_lid' => 'Domain Users', + elseif ($account_id == -513) + { + $instance->cache_data($account_id, $account = [ + 'account_id' => -513, + 'account_lid' => 'Domain Users', + 'account_type' => 'g', + 'account_firstname' => 'Domain Users', + 'account_lastname' => lang('Group'), + 'account_fullname' => lang('Group').' Domain Users', + 'members-active' => [], + 'members' => [], + ]); + } //error_log(__METHOD__."($account_id) read from backend ".array2string($account)); } //else error_log(__METHOD__."($account_id) read from instance cache ".array2string($account));