From: hickert Date: Wed, 15 Oct 2008 13:31:40 +0000 (+0000) Subject: Updated FAI classes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ffb00a0b96c269d08526fcd22c80a393a31a344c;p=gosa.git Updated FAI classes - Use parent dn for new object's ACL check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12711 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiHook.inc b/gosa-plugins/fai/admin/fai/class_faiHook.inc index a8c845fdf..6778811fb 100644 --- a/gosa-plugins/fai/admin/fai/class_faiHook.inc +++ b/gosa-plugins/fai/admin/fai/class_faiHook.inc @@ -100,7 +100,7 @@ class faiHook extends plugin function acl_base_for_current_object($dn) { - if($dn == "new"){ + if($dn == "new" || $dn == ""){ if($this->dn == "new"){ $dn = session::get('CurrentMainBase'); }else{ diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc index 216369159..eac75522a 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc @@ -82,7 +82,7 @@ class faiPartitionTable extends plugin function acl_base_for_current_object($dn) { - if($dn == "new"){ + if($dn == "new" || $dn == ""){ if($this->dn == "new"){ $dn = session::get('CurrentMainBase'); }else{ diff --git a/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/gosa-plugins/fai/admin/fai/class_faiProfile.inc index 8e08c7635..e6c007efb 100644 --- a/gosa-plugins/fai/admin/fai/class_faiProfile.inc +++ b/gosa-plugins/fai/admin/fai/class_faiProfile.inc @@ -118,7 +118,7 @@ class faiProfile extends plugin function acl_base_for_current_object($dn) { - if($dn == "new"){ + if($dn == "new" || $dn == ""){ if($this->dn == "new"){ $dn = session::get('CurrentMainBase'); }else{ diff --git a/gosa-plugins/fai/admin/fai/class_faiScript.inc b/gosa-plugins/fai/admin/fai/class_faiScript.inc index 6e5ee1ce5..2488e4c54 100644 --- a/gosa-plugins/fai/admin/fai/class_faiScript.inc +++ b/gosa-plugins/fai/admin/fai/class_faiScript.inc @@ -108,7 +108,7 @@ class faiScript extends plugin /* Return a valid dn to fetch acls. Because 'new' will not work. */ function acl_base_for_current_object($dn) { - if($dn == "new"){ + if($dn == "new" || $dn == ""){ if($this->dn == "new"){ $dn= "cn=dummy,".session::get('CurrentMainBase'); }else{ diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc index 8325cce88..0b7eddc7a 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc @@ -342,7 +342,7 @@ class faiTemplate extends plugin function acl_base_for_current_object($dn) { - if($dn == "new"){ + if($dn == "new" || $dn == ""){ if($this->dn == "new"){ $dn = session::get('CurrentMainBase'); }else{ diff --git a/gosa-plugins/fai/admin/fai/class_faiVariable.inc b/gosa-plugins/fai/admin/fai/class_faiVariable.inc index 36e01de5a..7c7f3f69a 100644 --- a/gosa-plugins/fai/admin/fai/class_faiVariable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiVariable.inc @@ -63,7 +63,7 @@ class faiVariable extends plugin function acl_base_for_current_object($dn) { - if($dn == "new"){ + if($dn == "new" || $dn == ""){ if($this->dn == "new"){ $dn = session::get('CurrentMainBase'); }else{