monitoring: Use @inheritdoc for HostController::$commandRedirectUrl

This commit is contained in:
Eric Lippmann 2015-08-27 23:21:48 +02:00
parent 1f922a7da6
commit c8927a36dc

View File

@ -15,9 +15,9 @@ use Icinga\Web\Hook;
class HostController extends MonitoredObjectController
{
/**
* (non-PHPDoc)
* @see MonitoredObjectController::$commandRedirectUrl For the property documentation.
* {@inheritdoc}
*/
protected $commandRedirectUrl = 'monitoring/host/show';
@ -27,9 +27,7 @@ class HostController extends MonitoredObjectController
public function init()
{
$host = new Host($this->backend, $this->params->getRequired('host'));
$this->applyRestriction('monitoring/filter/objects', $host);
if ($host->fetch() === false) {
$this->httpNotFound($this->translate('Host not found'));
}