forked from extern/egroupware
Missed one implementation of limit exception user/group
This commit is contained in:
parent
30ed6a8ab7
commit
a572007f1c
@ -38,8 +38,9 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
|||||||
$uicontacts = new addressbook_ui();
|
$uicontacts = new addressbook_ui();
|
||||||
$selection = array();
|
$selection = array();
|
||||||
|
|
||||||
// Addressbook defines its own export limits
|
// Addressbook defines its own export imits
|
||||||
if($GLOBALS['egw_info']['server']['contact_export_limit'] == 'no' && !$GLOBALS['egw_info']['user']['apps']['admin']) {
|
$limit_exception = count(array_intersect(array($GLOBALS['egw_info']['user']['account_id']) + $GLOBALS['egw']->accounts->memberships($GLOBALS['egw_info']['user']['account_id'],true), unserialize($GLOBALS['egw_info']['server']['export_limit_excepted']))) > 0;
|
||||||
|
if($GLOBALS['egw_info']['server']['contact_export_limit'] == 'no' && !($GLOBALS['egw_info']['user']['apps']['admin'] || $limit_exception)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,7 +65,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
|||||||
}
|
}
|
||||||
$GLOBALS['egw_info']['flags']['currentapp'] = $old_app;
|
$GLOBALS['egw_info']['flags']['currentapp'] = $old_app;
|
||||||
|
|
||||||
if($GLOBALS['egw_info']['server']['contact_export_limit'] && !$GLOBALS['egw_info']['user']['apps']['admin']) {
|
if($GLOBALS['egw_info']['server']['contact_export_limit'] && !($GLOBALS['egw_info']['user']['apps']['admin'] || $limit_exception)) {
|
||||||
$selection = array_slice($selection, 0, $GLOBALS['egw_info']['server']['contact_export_limit']);
|
$selection = array_slice($selection, 0, $GLOBALS['egw_info']['server']['contact_export_limit']);
|
||||||
}
|
}
|
||||||
if($options['explode_multiselects']) {
|
if($options['explode_multiselects']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user