From ec9e94b99d772ea2c9a950bba198b77238abd0db Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 28 Sep 2019 12:58:01 -0400 Subject: [PATCH] Don't add checkboxes if can't edit groups --- web/skins/classic/views/groups.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/skins/classic/views/groups.php b/web/skins/classic/views/groups.php index 5ae28a40a..cba26aaea 100644 --- a/web/skins/classic/views/groups.php +++ b/web/skins/classic/views/groups.php @@ -55,7 +55,9 @@ xhtmlHeaders(__FILE__, translate('Groups')); + + @@ -71,10 +73,11 @@ function group_line( $Group ) { } else { $html .= validHtmlStr($Group->Name()); } - $html .= ''. monitorIdsToNames($Group->MonitorIds(), 30).' - - - '; + $html .= ''. monitorIdsToNames($Group->MonitorIds(), 30).''; + if ( canEdit('Groups') ) { + $html .= ''; + } + $html .= ''; if ( isset( $children[$Group->Id()] ) ) { foreach ( $children[$Group->Id()] as $G ) { $html .= group_line($G);