summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc4f962)
raw | patch | inline | side by side (parent: dc4f962)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Oct 2009 12:27:15 +0000 (12:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Oct 2009 12:27:15 +0000 (12:27 +0000) |
- 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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14582 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_acl.inc | patch | blob | history |
index ce577b39d0d2bc1f573b3dde8a24477d11333fb7..19bde859ef949ad4d2c218dae64b68204cf9a6c0 100644 (file)
}
}
+
/* 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.= "<font color='red'><i>"._("inactive")." - "._("No members")."</i></font>";
}
- } else {
- $summary.= "<font color='red'><i>"._("inactive")." - "._("No members")."</i></font>";
}
-
return (preg_replace('/, $/', '', $summary));
}