Module: check_mk
Branch: master
Commit: 04177e5d099caa0ecd581eb71fd2eff51c5203d6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=04177e5d099caa…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Jan 27 12:45:43 2014 +0100
FIX Fixed permission bug in "Edit user profile" dialog.
The Edit user profile dialog has shown even the not user editable custom fields.
---
.werks/129 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 9 +++++----
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/.werks/129 b/.werks/129
new file mode 100644
index 0000000..7441ef2
--- /dev/null
+++ b/.werks/129
@@ -0,0 +1,9 @@
+Title: Fixed permission bug in "Edit user profile" dialog.
+Level: 1
+Component: wato
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1390823084
+
+The Edit user profile dialog has shown even the not user editable custom fields.
diff --git a/ChangeLog b/ChangeLog
index 1838d2e..30f4b78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -231,6 +231,7 @@
* 0434 FIX: Fixed wrong count of failed hosts in bulk inventory mode...
* 0678 FIX: Move two last global settings of Event Console to proper places
* 0268 FIX: wato inventory: fixed missing services...
+ * 0129 FIX: Fixed permission bug in "Edit user profile" dialog....
Notifications:
* 0362 sms: now searching PATH for sendsms and smssend commands...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ab66e2c..db5fdc4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -12975,10 +12975,11 @@ def page_user_profile():
if config.may('general.edit_user_attributes'):
for name, attr in userdb.get_user_attributes():
- vs = attr['valuespec']
- forms.section(vs.title())
- vs.render_input("ua_" + name, user.get(name,
vs.default_value()))
- html.help(vs.help())
+ if attr['user_editable']:
+ vs = attr['valuespec']
+ forms.section(vs.title())
+ vs.render_input("ua_" + name, user.get(name,
vs.default_value()))
+ html.help(vs.help())
# Save button
forms.end()