mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
monitoring: Use @inheritdoc for HostController::$commandRedirectUrl
This commit is contained in:
parent
1f922a7da6
commit
c8927a36dc
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user