From cbf8515a7bc17bb977d497bf083f94036e46f550 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 12 Oct 2009 12:27:15 +0000 Subject: [PATCH] Updated role listing - Do not display member summary for roles, roles do not have any members git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14582 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_acl.inc | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/gosa-core/include/class_acl.inc b/gosa-core/include/class_acl.inc index ce577b39d..19bde859e 100644 --- a/gosa-core/include/class_acl.inc +++ b/gosa-core/include/class_acl.inc @@ -1068,20 +1068,22 @@ class acl extends plugin } } + /* Summarize members */ - if ($summary != ""){ - $summary.= ", "; - } - if (count($entry['members'])){ - $summary.= _("Members").": "; - foreach ($entry['members'] as $cn){ - $cn= preg_replace('/ \[.*$/', '', $cn); - $summary.= $cn.", "; + if(!($this instanceOf aclrole)){ + if ($summary != ""){ + $summary.= ", "; + } + if (count($entry['members'])){ + $summary.= _("Members").": "; + foreach ($entry['members'] as $cn){ + $cn= preg_replace('/ \[.*$/', '', $cn); + $summary.= $cn.", "; + } + } else { + $summary.= ""._("inactive")." - "._("No members").""; } - } else { - $summary.= ""._("inactive")." - "._("No members").""; } - return (preg_replace('/, $/', '', $summary)); } -- 2.30.2