From 3be162cd2ab76e9197f159c6c2f5dab313dac114 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 18 Jul 2011 10:09:47 +0000 Subject: [PATCH] fix by Ralf for bug, that prevented the update of accounts, if your accountselection method is groupmembers --- addressbook/inc/class.addressbook_bo.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_bo.inc.php b/addressbook/inc/class.addressbook_bo.inc.php index 306258e11f..95ed0468da 100755 --- a/addressbook/inc/class.addressbook_bo.inc.php +++ b/addressbook/inc/class.addressbook_bo.inc.php @@ -1044,7 +1044,8 @@ class addressbook_bo extends addressbook_so } // for reading accounts (owner == 0) and account_selection == groupmembers, check if current user and contact are groupmembers elseif ($owner == 0 && $needed == EGW_ACL_READ && - $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'groupmembers') + $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'groupmembers' && + !isset($GLOBALS['egw_info']['user']['apps']['admin'])) { $access = !!array_intersect($memberships,$GLOBALS['egw']->accounts->memberships($contact['account_id'],true)); }