Module: check_mk
Branch: master
Commit: ecf2f5563b03553a6ec343d4d3caabc40ece28e4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ecf2f5563b0355…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 18 13:33:51 2014 +0100
Fixed exception on user create page
---
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 5b68ffe..c56d451 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -11954,7 +11954,7 @@ def mode_edit_user(phase):
html.write(" (%s)" % _("optional"))
html.write("</td></tr><tr><td>%s:</td><td>"
% _("Enforce change"))
# Only make password enforcement selection possible when user is allowed to
change the PW
- if config.user_may(userid, 'general.edit_profile') and
config.user_may(userid, 'general.change_password'):
+ if new or config.user_may(userid, 'general.edit_profile') and
config.user_may(userid, 'general.change_password'):
html.checkbox("enforce_pw_change",
user.get("enforce_pw_change", False))
html.write(_("Change password at next login or access"))
else: