mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-03-15 15:13:02 -04:00
23 lines
607 B
PHP
23 lines
607 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Graphite\Web\Controller;
|
|
|
|
use Icinga\Module\Monitoring\Controller;
|
|
use Icinga\Module\Monitoring\DataView\DataView;
|
|
|
|
abstract class MonitoringAwareController extends Controller
|
|
{
|
|
/**
|
|
* Restrict the given monitored object query for the currently authenticated user
|
|
*
|
|
* @param DataView $dataView
|
|
*
|
|
* @return DataView The given data view
|
|
*/
|
|
protected function applyMonitoringRestriction(DataView $dataView)
|
|
{
|
|
$this->applyRestriction('monitoring/filter/objects', $dataView);
|
|
|
|
return $dataView;
|
|
}
|
|
}
|