mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-22 10:52:00 +02: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 ";
|
. "acl_location in ";
|
||||||
$security = "('". $phpgw_info['user']['account_id'] ."'";
|
$security = "('". $phpgw_info['user']['account_id'] ."'";
|
||||||
$my_memberships = $phpgw->accounts->memberships(intval($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);
|
$group = each($groups);
|
||||||
$security .= ",'" . $group[1]['account_id'] . "'";
|
$security .= ",'" . $group[1]['account_id'] . "'";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user