summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2195638)
raw | patch | inline | side by side (parent: 2195638)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jul 2006 11:29:58 +0000 (11:29 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jul 2006 11:29:58 +0000 (11:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4160 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_acl.inc | patch | blob | history | |
plugins/personal/environment/class_environment.inc | patch | blob | history |
diff --git a/include/class_acl.inc b/include/class_acl.inc
index 91a5dc5695c4d65ad7a487d40d35692269b8b807..499fcc8cb2e06eff5977f57efb32a34c0571d8c8 100644 (file)
--- a/include/class_acl.inc
+++ b/include/class_acl.inc
if (isset($acls['plDescription'])){
/* Only feed categories */
if (isset($acls['plDepends']['description'])){
- if (is_array($acls['plDepends']['objectClass'])){
- foreach($acls['plDepends']['objectClass'] as $oc){
- $this->aclObjects[$oc]= $acls['plDepends']['description'];
- }
- } else {
- $this->aclObjects[$acls['plDepends']['objectClass']]= $acls['plDepends']['description'];
- }
+ $this->aclObjects[$acls['plDepends']['objectClass']]= $acls['plDepends']['description'];
}
/* Additionally filter the classes we're interested in in "self edit" mode */
- if (is_array($acls['plDepends']['objectClass'])){
- foreach($acls['plDepends']['objectClass'] as $hoc){
- if (in_array_ics($hoc, $oc)){
- $this->myAclObjects[$class]= $acls['plDescription'];
- break;
- }
- }
- } else {
- if (in_array_ics($acls['plDepends']['objectClass'], $oc)){
- $this->myAclObjects[$class]= $acls['plDescription'];
- }
+ if (in_array_ics($acls['plDepends']['objectClass'], $oc)){
+ $this->myAclObjects[$class]= $acls['plDescription'];
}
}
}
/* Generate mapping object */
foreach ($plist as $oc => $pl){
if (isset($pl['plDepends']['objectClass'])){
- if (is_array($pl['plDepends']['objectClass'])){
- foreach($pl['plDepends']['objectClass'] as $class){
- if (!isset($this->ocMapping[$class])){
- $this->ocMapping[$class]= array();
- }
- $this->ocMapping[$class][]= $oc;
- }
- } else {
- $class= $pl['plDepends']['objectClass'];
- if (!isset($this->ocMapping[$class])){
- $this->ocMapping[$class]= array();
- }
- $this->ocMapping[$class][]= $oc;
+ $class= $pl['plDepends']['objectClass'];
+ if (!isset($this->ocMapping[$class])){
+ $this->ocMapping[$class]= array();
+ $this->ocMapping[$class][]= '0';
}
+ $this->ocMapping[$class][]= $oc;
}
}
$aclObjects= array();
foreach ($plist as $class => $acls){
- if (isset($acls['plDepends']['objectClass'])){
- if (is_array($acls['plDepends']['objectClass'])){
- foreach($acls['plDepends']['objectClass'] as $coc){
- if ($coc == $this->aclObject){
- $aclObjects[$class]= $acls['plDescription'];
- break;
- }
- }
- } else {
- if ($acls['plDepends']['objectClass'] == $this->aclObject){
- $aclObjects[$class]= $acls['plDescription'];
- }
- }
+ if (isset($acls['plDepends']['objectClass']) && $acls['plDepends']['objectClass'] == $this->aclObject){
+ $aclObjects[$class]= $acls['plDescription'];
}
}
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 784fca967eea2bd6a8c485f00ffc100019d96cfc..c8a599c44e3713056d3fc1bbe62b4b41d4e4cfda 100644 (file)
{
return (array("plDescription" => _("Environment settings"),
"plSelfModify" => TRUE,
- "plDepends" => array("objectClass" => array("gosaAccount", "posixGroup")),
+ "plDepends" => array("objectClass" => "gosaAccount"),
"gotoProfileServer" => _("Profile server") ,
"gotoProfileFlag_L" => "FIXME"._("Resolution changeable during session") , // These variable are flags