summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e6bbd7)
raw | patch | inline | side by side (parent: 4e6bbd7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jul 2006 10:08:52 +0000 (10:08 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jul 2006 10:08:52 +0000 (10:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4156 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_acl.inc | patch | blob | history |
diff --git a/include/class_acl.inc b/include/class_acl.inc
index 9d983099352eeebfbf8d7f1de97a01dcb555ce83..cbd8a0c19e2ed5966a18649bfddb49a5c09df4d0 100644 (file)
--- a/include/class_acl.inc
+++ b/include/class_acl.inc
}
}
}
+
+ /* Add category for all objects */
asort($this->aclObjects);
/* Generate mapping object */
$class= $pl['plDepends']['objectClass'];
if (!isset($this->ocMapping[$class])){
$this->ocMapping[$class]= array();
+ $this->ocMapping[$class][]= '0';
}
$this->ocMapping[$class][]= $oc;
}
$new_acl[$object][$attribute]= $value;
}
}
-
}
/* Only be interested in new acl's, if we're in the right _POST place */
}
}
+ /* Save new acl in case of base edit mode */
+ if ($this->aclType == 'base'){
+ $this->aclContents= $new_acl;
+ }
+
/* Cancel new acl? */
if (isset($_POST['cancel_new_acl'])){
$this->dialogState= 'head';
/* Set summary... */
if ($summary == ""){
- $summary= _("No ACL settings for this category");
+ $summary= '<i>'._("No ACL settings for this category").'</i>';
} else {
$summary= sprintf(_("Contains ACLs for these objects: %s"), preg_replace('/, $/', '', $summary));
}
/* Collect objects for selected category */
$aclObjects= array();
+
foreach ($plist as $class => $acls){
if (isset($acls['plDepends']['objectClass']) && $acls['plDepends']['objectClass'] == $this->aclObject){
$aclObjects[$class]= $acls['plDescription'];
/* Global options */
$more_options= $this->mkchkbx($key."_0_r", _("read"), preg_match('/r/', $currentAcl[0])).$spc;
- $more_options.= $this->mkchkbx($key."_0_w", _("write"), preg_match('/w/', $currentAcl[0])).$spc;
+ $more_options.= $this->mkchkbx($key."_0_w", _("write"), preg_match('/w/', $currentAcl[0]));
- $display.= "<tr><td style='background-color:#E0E0E0' colspan=".($cols-1).">$options</td><td style='background-color:#C8C8C8'> ".("Complete object:")." $more_options</td></tr>";
+ $display.= "<tr><td style='background-color:#E0E0E0' colspan=".($cols-1).">$options</td><td style='background-color:#D4D4D4'> ".("Complete object:")." $more_options</td></tr>";
/* Walk through the list of attributes */
$cnt= 1;