Module: check_mk
Branch: master
Commit: 766dd018242017fd5bffef74a2bf10317095e76a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=766dd018242017…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 23 14:20:32 2011 +0100
WATO: Prevent erros if no contactgroups defined for a user
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index db7efc3..78170b0 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -921,7 +921,7 @@ def check_folder_permissions(folder, how, exception=True, user =
None):
if config.user_id not in users:
user_cgs = []
else:
- user_cgs = users[config.user_id]["contactgroups"]
+ user_cgs = users[config.user_id].get("contactgroups", [])
for c in user_cgs:
if c in cgs: