From c571975c833eaa9f01874571546105643ed1477e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Apr 2012 10:15:47 +0000 Subject: [PATCH] * InfoLog: remove group-types user has not any rights to as filter in list --- infolog/inc/class.infolog_ui.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 155bc33a67..5c3522893a 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -841,6 +841,13 @@ class infolog_ui 'info_priority' => $this->bo->enums['priority'], ); + // remove group-types user has not any rights to as filter + // does not take implicit rights as delegated into account, so they will not be available as filters + foreach($this->bo->group_owners as $type => $group) + { + if (!isset($this->bo->grants[$group])) unset($sel_options['info_type'][$type]); + } + egw_framework::validate_file('.','index','infolog'); return $this->tmpl->exec('infolog.infolog_ui.index',$values,$sel_options,$readonlys,$persist,$return_html ? -1 : 0);