MonitoredObjectController: Don't show `Check Now` if active checks are disabled
refs #3665
This commit is contained in:
parent
b275a1383d
commit
3d4fa0bcae
|
@ -268,7 +268,11 @@ abstract class MonitoredObjectController extends Controller
|
|||
protected function setupQuickActionForms()
|
||||
{
|
||||
$auth = $this->Auth();
|
||||
if ($auth->hasPermission('monitoring/command/schedule-check')) {
|
||||
if ($auth->hasPermission('monitoring/command/schedule-check')
|
||||
|| ($auth->hasPermission('monitoring/command/schedule-check/active-only')
|
||||
&& $this->object->active_checks_enabled
|
||||
)
|
||||
) {
|
||||
$this->view->checkNowForm = $checkNowForm = new CheckNowCommandForm();
|
||||
$checkNowForm
|
||||
->setObjects($this->object)
|
||||
|
|
Loading…
Reference in New Issue