usertemplates: new controller and table
This commit is contained in:
parent
292a77dfc4
commit
23caa0b5db
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Controllers;
|
||||
|
||||
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
||||
|
||||
class UsertemplatesController extends ObjectsController
|
||||
{
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Tables;
|
||||
|
||||
use Icinga\Module\Director\Tables\IcingaUserTable;
|
||||
|
||||
class IcingaUserTemplateTable extends IcingaUserTable
|
||||
{
|
||||
public function getBaseQuery()
|
||||
{
|
||||
return $this->getUnfilteredQuery()->where('u.object_type = ?', 'template');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue