diff options
Diffstat (limited to 'library/Director/Web/Table/ObjectsTableApiUser.php')
-rw-r--r-- | library/Director/Web/Table/ObjectsTableApiUser.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/library/Director/Web/Table/ObjectsTableApiUser.php b/library/Director/Web/Table/ObjectsTableApiUser.php new file mode 100644 index 0000000..2287c2f --- /dev/null +++ b/library/Director/Web/Table/ObjectsTableApiUser.php @@ -0,0 +1,13 @@ +<?php + +namespace Icinga\Module\Director\Web\Table; + +use Zend_Db_Select as ZfSelect; + +class ObjectsTableApiUser extends ObjectsTable +{ + protected function applyObjectTypeFilter(ZfSelect $query, ZfSelect $right = null) + { + return $query->where("o.object_type IN ('object', 'external_object')"); + } +} |