diff --git a/importexport/inc/class.importexport_definitions_bo.inc.php b/importexport/inc/class.importexport_definitions_bo.inc.php index b929af01e6..81e082dbc5 100644 --- a/importexport/inc/class.importexport_definitions_bo.inc.php +++ b/importexport/inc/class.importexport_definitions_bo.inc.php @@ -29,13 +29,13 @@ class importexport_definitions_bo { */ private $definitions; - public function __construct($_query=false) + public function __construct($_query=false, $ignore_acl = false) { $this->so_sql = new so_sql(self::_appname, self::_defintion_table ); if ($_query) { - $definitions = $this->so_sql->search($_query, true); + $definitions = $this->so_sql->search($_query, false); foreach ((array)$definitions as $definition) { - $this->definitions[] = $definition['definition_id']; + if(self::is_permitted($definition) || $ignore_acl) $this->definitions[] = $definition['definition_id']; } } } diff --git a/importexport/inc/class.importexport_definitions_ui.inc.php b/importexport/inc/class.importexport_definitions_ui.inc.php index bbecd61b07..60e94cbf0d 100644 --- a/importexport/inc/class.importexport_definitions_ui.inc.php +++ b/importexport/inc/class.importexport_definitions_ui.inc.php @@ -77,7 +77,7 @@ class importexport_definitions_ui */ function index($content = null,$msg='') { - $bodefinitions = new importexport_definitions_bo(array('name' => '*')); + $bodefinitions = new importexport_definitions_bo(array('name' => '*'), true); if (is_array($content)) { if (isset($content['delete']))