mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
Fix acl in vcardout
This commit is contained in:
parent
d8400b494a
commit
350f22470f
@ -34,8 +34,8 @@
|
|||||||
|
|
||||||
$fields = $this->read_single_entry($ab_id,$this->stock_contact_fields);
|
$fields = $this->read_single_entry($ab_id,$this->stock_contact_fields);
|
||||||
|
|
||||||
$rights = $phpgw->acl->get_rights('u_'.$$fields[0]["owner"],$phpgw_info["flags"]["currentapp"]);
|
$rights = $phpgw->acl->get_rights('u_'.$fields[0]["owner"],$phpgw_info["flags"]["currentapp"]);
|
||||||
if ( ($rights & PHPGW_ACL_READ) || ($owner == $account_id) ) {
|
if ( ($rights & PHPGW_ACL_READ) || ($fields[0]["owner"] == $phpgw_info["user"]["account_id"]) ) {
|
||||||
|
|
||||||
$email = $fields[0]["d_email"];
|
$email = $fields[0]["d_email"];
|
||||||
$fullname = $fields[0]["fn"];
|
$fullname = $fields[0]["fn"];
|
||||||
|
Loading…
Reference in New Issue
Block a user