Code

Updated FAI classes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Oct 2008 13:31:40 +0000 (13:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Oct 2008 13:31:40 +0000 (13:31 +0000)
- 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

gosa-plugins/fai/admin/fai/class_faiHook.inc
gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
gosa-plugins/fai/admin/fai/class_faiProfile.inc
gosa-plugins/fai/admin/fai/class_faiScript.inc
gosa-plugins/fai/admin/fai/class_faiTemplate.inc
gosa-plugins/fai/admin/fai/class_faiVariable.inc

index a8c845fdf99ea9ee65c6658e077623737db8dae2..6778811fb4bfd420e72a37469cb3cf9df757a926 100644 (file)
@@ -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{
index 216369159799f70a22cde830a8c84d0480e8477f..eac75522a0ed88d522d730b979a4b4000e64d082 100644 (file)
@@ -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{
index 8e08c7635340d9031c6a12590f51fef242f2285d..e6c007efbff6626a5674652118cbfa01f31926d2 100644 (file)
@@ -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{
index 6e5ee1ce58c7f5cbb425dc00f17837e34ba7c1e1..2488e4c545599677ea6a45c032eae424d69d0984 100644 (file)
@@ -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{
index 8325cce888947faef4551e28ed0dacfb733157f0..0b7eddc7ad49930bad8179a7dd3f40d56a400e2e 100644 (file)
@@ -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{
index 36e01de5a8eafb9eb507c25736b795c2ef2d5cb5..7c7f3f69a5e1d2a3dc7584d0ecfb46de31ca1233 100644 (file)
@@ -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{