From: hickert Date: Thu, 20 Jul 2006 08:01:41 +0000 (+0000) Subject: Added parameter to acl functions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7bc6f21b34a8a3c432296d1430dcd91485985a5e;p=gosa.git Added parameter to acl functions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4251 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 3d59015a2..a4182cfd8 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1399,10 +1399,10 @@ echo "FIXME: remove_snapshot uses old acl's
"; } - 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
"; } - 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: