Code

ACls with no memebers are no inactive.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Oct 2009 14:25:55 +0000 (14:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Oct 2009 14:25:55 +0000 (14:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14491 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_acl.inc
gosa-core/include/class_userinfo.inc

index 02d0a41a1b33d518c4ef6fa92231dc3098f7c2a5..ce577b39d0d2bc1f573b3dde8a24477d11333fb7 100644 (file)
@@ -1079,7 +1079,7 @@ class acl extends plugin
         $summary.= $cn.", ";
       }
     } else {
-      $summary.= _("ACL takes effect for all users");
+      $summary.= "<font color='red'><i>"._("inactive")."&nbsp;-&nbsp;"._("No members")."</i></font>";
     }
 
     return (preg_replace('/, $/', '', $summary));
index a32f07da647664216c4cd799b4ebecd6208cbefe..65ac65c5860040eda79bb3ec612399280edbc372 100644 (file)
@@ -158,9 +158,9 @@ class userinfo
       foreach($aclc[$dn] as $idx => $type){
         $interresting= FALSE;
         
-        /* No members? This is good for all users... */
+        /* No members? This ACL rule is deactivated ... */
         if (!count($type['members'])){
-          $interresting= TRUE;
+          $interresting= FALSE; 
         } else {
 
           /* Inspect members... */