Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/host_screen.php')
-rw-r--r--frontends/php/host_screen.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontends/php/host_screen.php b/frontends/php/host_screen.php
index 867605044bf..8be60735872 100644
--- a/frontends/php/host_screen.php
+++ b/frontends/php/host_screen.php
@@ -66,6 +66,15 @@ $data = [
];
CProfile::update('web.hostscreen.screenid', $data['screenid'], PROFILE_TYPE_ID);
+$host = API::Host()->get([
+ 'output' => [],
+ 'hostids' => $data['hostid']
+]);
+
+if (!$host) {
+ access_deny();
+}
+
// get screen list
$data['screens'] = API::TemplateScreen()->get([
'hostids' => $data['hostid'],