Module: check_mk
Branch: master
Commit: 84ee98f0e2ce83bf7549741dcd311d1ece918bf7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=84ee98f0e2ce83…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 11 09:48:42 2012 +0100
FIX: Fixed changing own password when notifications are disabled
---
ChangeLog | 1 +
web/htdocs/wato.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7f16bd6..0adb5ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -43,6 +43,7 @@
* Use pprint when writing global settings (makes files more readable)
* New script for settings/removing downtimes: doc/treasures/downtime
* New option when setting host downtimes for also including child hosts
+ * FIX: Fixed changing own password when notifications are disabled
WATO:
* FIX: Fixed generated manual check definitions for checks without items
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 4215894..d25fd5d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -11178,7 +11178,8 @@ def page_user_profile():
# load the new language
load_language(config.get_language())
- if config.may('general.edit_notifications'):
+ user = users.get(config.user_id)
+ if config.may('general.edit_notifications') and
user.get("notifications_enabled"):
value = forms.get_input(vs_notification_method,
"notification_method")
users[config.user_id]["notification_method"] = value