Code

Added parameter to acl functions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Jul 2006 08:01:41 +0000 (08:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Jul 2006 08:01:41 +0000 (08:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4251 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc

index 3d59015a24b6dc343e888fd3cb7877f827d5961b..a4182cfd8773ba680b67ae5fa1a2a2dc39a14306 100644 (file)
@@ -1399,10 +1399,10 @@ echo "FIXME: remove_snapshot uses old acl's<br>";
   }
 
 
-  function acl_is_writeable($attribute)
+  function acl_is_writeable($attribute,$skip_write = FALSE)
   {
     $ui= get_userinfo();
-    return preg_match('/w/', $ui->get_permissions($this->dn, get_class($this), $attribute));
+    return preg_match('/w/', $ui->get_permissions($this->dn, get_class($this), $attribute,$skip_write));
   }
 
 
@@ -1434,10 +1434,10 @@ echo "FIXME: remove_snapshot uses old acl's<br>";
   }
 
 
-  function getacl($attribute)
+  function getacl($attribute,$skip_write= FALSE)
   {
     $ui= get_userinfo();
-    return  $ui->get_permissions($this->dn, get_class($this), $attribute);
+    return  $ui->get_permissions($this->dn, get_class($this), $attribute,$skip_write);
   }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: