From b84e51fc3923c05722886db93a7031b8328cd26e Mon Sep 17 00:00:00 2001 From: skeeter Date: Mon, 12 Feb 2001 04:59:10 +0000 Subject: [PATCH] fix for get_grants working with group access --- phpgwapi/inc/class.acl.inc.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 32fa103a06..77bdba8b11 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -342,17 +342,24 @@ It should use the values in the $this->data while($groups = each($my_memberships)) { $group = each($groups); - $security .= ",'" . $group_pre . $group[1] . "'"; + $security .= ",'" . $group_pre . $group[1]['account_id'] . "'"; } $security .= ')'; $db2->query($sql . $security ,__LINE__,__FILE__); $rights = 0; + $accounts = Array(); if ($db2->num_rows() == 0 ){ return False; } while ($db2->next_record()) { $grantor = $db2->f('acl_account'); $rights = $db2->f('acl_rights'); - if(!$accounts[$grantor]) + +// if($grantor == $phpgw_info['user']['account_id']) +// { +// continue; +// } + + if(!isset($accounts[$grantor])) { $accounts[$grantor] = 0; }