mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
fix in get_grants() if the user is by some unknown reason, not associated to a group
This commit is contained in:
parent
4199aceffc
commit
4b31a3a93b
@ -513,7 +513,7 @@ It should use the values in the $this->data
|
||||
. "acl_location in ";
|
||||
$security = "('". $phpgw_info['user']['account_id'] ."'";
|
||||
$my_memberships = $phpgw->accounts->memberships(intval($phpgw_info['user']['account_id']));
|
||||
while($groups = each($my_memberships))
|
||||
while($my_memberships && $groups = each($my_memberships))
|
||||
{
|
||||
$group = each($groups);
|
||||
$security .= ",'" . $group[1]['account_id'] . "'";
|
||||
|
Loading…
Reference in New Issue
Block a user