Module: check_mk
Branch: master
Commit: 8d501436171ccd54a120efff90cc707428d0c785
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8d501436171ccd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Mar 18 11:21:36 2014 +0100
RBN: Fix exception when a user is saving a new rule
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f4784eb..bc9cf2f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -257,7 +257,7 @@ def page_handler():
html.set_var("mode", newmode) # will be used by makeuri
# Check general permissions for the new mode
- if not config.may("wato.seeall"):
+ if modeperms != None and not config.may("wato.seeall"):
for pname in modeperms:
if '.' not in pname:
pname = "wato." + pname