mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
fix for get_grants working with group access
This commit is contained in:
parent
639eb3dafe
commit
b84e51fc39
@ -342,17 +342,24 @@ It should use the values in the $this->data
|
|||||||
while($groups = each($my_memberships))
|
while($groups = each($my_memberships))
|
||||||
{
|
{
|
||||||
$group = each($groups);
|
$group = each($groups);
|
||||||
$security .= ",'" . $group_pre . $group[1] . "'";
|
$security .= ",'" . $group_pre . $group[1]['account_id'] . "'";
|
||||||
}
|
}
|
||||||
$security .= ')';
|
$security .= ')';
|
||||||
$db2->query($sql . $security ,__LINE__,__FILE__);
|
$db2->query($sql . $security ,__LINE__,__FILE__);
|
||||||
$rights = 0;
|
$rights = 0;
|
||||||
|
$accounts = Array();
|
||||||
if ($db2->num_rows() == 0 ){ return False; }
|
if ($db2->num_rows() == 0 ){ return False; }
|
||||||
while ($db2->next_record())
|
while ($db2->next_record())
|
||||||
{
|
{
|
||||||
$grantor = $db2->f('acl_account');
|
$grantor = $db2->f('acl_account');
|
||||||
$rights = $db2->f('acl_rights');
|
$rights = $db2->f('acl_rights');
|
||||||
if(!$accounts[$grantor])
|
|
||||||
|
// if($grantor == $phpgw_info['user']['account_id'])
|
||||||
|
// {
|
||||||
|
// continue;
|
||||||
|
// }
|
||||||
|
|
||||||
|
if(!isset($accounts[$grantor]))
|
||||||
{
|
{
|
||||||
$accounts[$grantor] = 0;
|
$accounts[$grantor] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user