Add acl check to not reset owner if acl is in effect

This commit is contained in:
Miles Lott 2001-03-30 03:09:52 +00:00
parent 6f9c81a7af
commit 19480431a9

View File

@ -160,7 +160,14 @@
$fields["cat_id"] = $cat_id; $fields["cat_id"] = $cat_id;
$userid = $phpgw_info["user"]["account_id"]; if (($this->grants[$check[0]['owner']] & PHPGW_ACL_EDIT) && $check[0]['owner'] != $phpgw_info['user']['account_id'])
{
$userid = $check[0]['owner'];
}
else
{
$userid = $phpgw_info["user"]["account_id"];
}
addressbook_update_entry($ab_id,$userid,$fields,$fields['access'],$fields["cat_id"]); addressbook_update_entry($ab_id,$userid,$fields,$fields['access'],$fields["cat_id"]);