mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
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();
|
||||
$selection = array();
|
||||
|
||||
// Addressbook defines its own export limits
|
||||
if($GLOBALS['egw_info']['server']['contact_export_limit'] == 'no' && !$GLOBALS['egw_info']['user']['apps']['admin']) {
|
||||
// Addressbook defines its own export imits
|
||||
$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;
|
||||
}
|
||||
|
||||
@ -64,7 +65,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
||||
}
|
||||
$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']);
|
||||
}
|
||||
if($options['explode_multiselects']) {
|
||||
|
Loading…
Reference in New Issue
Block a user