mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
fix by Ralf for bug, that prevented the update of accounts, if your accountselection method is groupmembers
This commit is contained in:
parent
6263753e80
commit
fe9e16d845
@ -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
|
// for reading accounts (owner == 0) and account_selection == groupmembers, check if current user and contact are groupmembers
|
||||||
elseif ($owner == 0 && $needed == EGW_ACL_READ &&
|
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));
|
$access = !!array_intersect($memberships,$GLOBALS['egw']->accounts->memberships($contact['account_id'],true));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user