Module: check_mk
Branch: master
Commit: f4a91624fd6bcba64dc214b9058cfabba3464541
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f4a91624fd6bcb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 5 10:17:46 2011 +0200
Dont make rows selectable when no commands can be fired
---
web/plugins/views/layouts.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/web/plugins/views/layouts.py b/web/plugins/views/layouts.py
index 5c8a98b..09c710a 100644
--- a/web/plugins/views/layouts.py
+++ b/web/plugins/views/layouts.py
@@ -25,6 +25,10 @@
# Boston, MA 02110-1301 USA.
def init_rowselect():
+ # Don't make rows selectable when no commands can be fired
+ if not 'C' in html.display_options or not config.may("act"):
+ return
+
row_nums = []
if html.has_var('selected_rows'):
selected_rows = html.var('selected_rows', '')