Module: check_mk
Branch: master
Commit: 2f67a4b48436f1607b44d33e19337b43ce0988b7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2f67a4b48436f1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 2 13:33:46 2013 +0200
FIX: Removed "No roles assigned" text from user management dialog
---
ChangeLog | 4 ++++
web/htdocs/wato.py | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 531df24..3dacbce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -113,6 +113,10 @@
Livestatus:
* FIX: memory leak when removing downtime / comment
+ WATO:
+ * FIX: Removed "No roles assigned" text in case of unlocked role attribute
+ in user management dialog
+
Event Console:
* setup.py now tries to setup Event Console even in non-OMD world
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index aa4f096..dc717d2 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8199,7 +8199,7 @@ def mode_edit_user(phase):
html.write("<a href='%s'>%s</a><br>"
% (url, role["alias"]))
html.hidden_field("role_" + role_id, is_member and '1' or
'')
- if not is_member_of_at_least_one:
+ if is_locked('roles') and not is_member_of_at_least_one:
html.write('<i>%s</i>' % _('No roles assigned.'))
# Contact groups