forked from extern/egroupware
Add category ACL check to export conversion to human values
This commit is contained in:
parent
9f4118e947
commit
e6e27fd29e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user