Module: check_mk
Branch: master
Commit: 24810645723f220c6f62c39184f3e76588c9941f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=24810645723f22…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 22 09:02:11 2018 +0200
6108 FIX Raw Edition: Don't show enterprise specific graph export links in context
menu
Change-Id: I938571cfa38eb94758685564b1a38683cf928bd5
---
.werks/6108 | 11 +++++++++++
web/htdocs/visuals.py | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/6108 b/.werks/6108
new file mode 100644
index 0000000..05bab76
--- /dev/null
+++ b/.werks/6108
@@ -0,0 +1,11 @@
+Title: Raw Edition: Don't show enterprise specific graph export links in context
menu
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1526972508
+
+
diff --git a/web/htdocs/visuals.py b/web/htdocs/visuals.py
index 8a20415..5f1aa99 100644
--- a/web/htdocs/visuals.py
+++ b/web/htdocs/visuals.py
@@ -35,6 +35,7 @@ from valuespec import *
import config, table, userdb
import pagetypes # That will replace visuals.py one day
import cmk.store as store
+import metrics
# .--Plugins-------------------------------------------------------------.
# | ____ _ _ |
@@ -1604,7 +1605,7 @@ def ajax_popup_add():
html.close_li()
# TODO: Find a good place for this special case. This needs to be modularized.
- if add_type == "pnpgraph":
+ if add_type == "pnpgraph" and metrics.cmk_graphs_possible():
html.open_li()
html.open_span()
html.write("%s:" % _("Export"))