From e6e27fd29e362aadf9f4814363fdf26ed4f7919f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 29 Oct 2012 19:18:27 +0000 Subject: [PATCH] Add category ACL check to export conversion to human values --- importexport/inc/class.importexport_export_csv.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_export_csv.inc.php b/importexport/inc/class.importexport_export_csv.inc.php index 474ab78324..3816952952 100644 --- a/importexport/inc/class.importexport_export_csv.inc.php +++ b/importexport/inc/class.importexport_export_csv.inc.php @@ -376,7 +376,8 @@ class importexport_export_csv implements importexport_iface_export_record $cats = array(); $ids = is_array($record->$name) ? $record->$name : explode(',', $record->$name); foreach($ids as $n => $cat_id) { - if ($cat_id) $cats[] = $GLOBALS['egw']->categories->id2name($cat_id); + if ($cat_id && $GLOBALS['egw']->categories->check_perms(EGW_ACL_READ,$cat_id)) + $cats[] = $GLOBALS['egw']->categories->id2name($cat_id); } $record->$name = implode(', ',$cats); }