Export limit does not apply to admins

This commit is contained in:
Nathan Gray 2011-03-15 15:13:46 +00:00
parent 8c094fd6be
commit fe18d21f4b

View File

@ -288,7 +288,7 @@ abstract class bo_merge
} }
$config = config::read('phpgwapi'); $config = config::read('phpgwapi');
if($config['export_limit']) { if($config['export_limit'] && !$GLOBALS['egw_info']['user']['apps']['admin']) {
$ids = array_slice($ids, 0, (int)$config['export_limit']); $ids = array_slice($ids, 0, (int)$config['export_limit']);
} }
return $this->merge_string($content,$ids,$err,$mimetype,$fix); return $this->merge_string($content,$ids,$err,$mimetype,$fix);