Module: check_mk
Branch: master
Commit: c3c22850bcf81737265a7bf1ffa70fa8a1a1ad08
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c3c22850bcf817…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 26 10:14:28 2018 +0100
5657 FIX Custom user attributes that are not editable by the user can now edited by the
admin
Change-Id: If6e6bdd2dbb5c1e5758af36507f6a052aa3f9f8e
---
.werks/5657 | 11 +++++++++++
web/htdocs/wato.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/5657 b/.werks/5657
new file mode 100644
index 0000000..a6cb47d
--- /dev/null
+++ b/.werks/5657
@@ -0,0 +1,11 @@
+Title: Custom user attributes that are not editable by the user can now edited by the
admin
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i3
+Date: 1516958049
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index cb28caf..3926ade 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10825,7 +10825,7 @@ def mode_edit_user(phase):
vs = attr['valuespec']
forms.section(_u(vs.title()))
- if attr['user_editable'] and not is_locked(name):
+ if not is_locked(name):
vs.render_input("ua_" + name, user.get(name,
vs.default_value()))
else:
html.write(vs.value_to_text(user.get(name, vs.default_value())))