Remove last acl call from vcardout

This commit is contained in:
Miles Lott 2001-02-14 00:58:52 +00:00
parent 7d2d4c7658
commit 2fe467a133

View File

@ -34,9 +34,6 @@
$fields = addressbook_read_entry($ab_id,$this->stock_contact_fields);
$rights = $phpgw->acl->get_rights($fields[0]["owner"],$phpgw_info["flags"]["currentapp"]);
if ( ($rights & PHPGW_ACL_READ) || ($fields[0]["owner"] == $phpgw_info["user"]["account_id"]) ) {
$email = $fields[0]["d_email"];
$fullname = $fields[0]["fn"];
$prefix = $fields[0]["n_prefix"];
@ -124,9 +121,6 @@
printf("VERSION:2.1\r\n");
printf("END:VCARD\r\n");
} /* !nolname && !nofname */
} else { /* acl check failed */
Header("Location: " . $phpgw->link("vcardout.php","nofname=1&ab_id=$ab_id&start=$start&order=$order&filter=" . "$filter&query=$query&sort=$sort"));
}
if($nofname) {
echo "<BR><BR><CENTER>";