Module: check_mk
Branch: master
Commit: 5021437be1703ee1614ba3e4a944dd3a9aef017c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5021437be1703e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 12 10:40:58 2016 +0200
Fixed exception when trying to fetch graph images for HTML mails
---
web/htdocs/config.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/web/htdocs/config.py b/web/htdocs/config.py
index 879aab1..95bb6cc 100644
--- a/web/htdocs/config.py
+++ b/web/htdocs/config.py
@@ -475,6 +475,10 @@ class LoggedInSuperUser(LoggedInUser):
self.siteconf = {}
+ def load_file(self, name, deflt, lock=False):
+ return deflt
+
+
class LoggedInNobody(LoggedInUser):
def __init__(self):
@@ -495,6 +499,10 @@ class LoggedInNobody(LoggedInUser):
self.siteconf = {}
+ def load_file(self, name, deflt, lock=False):
+ return deflt
+
+
def clear_user_login():
_set_user(LoggedInNobody())