X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_plugin.inc;h=3d59015a24b6dc343e888fd3cb7877f827d5961b;hb=6de304517137e0f4f49885a4e4f930907deb980d;hp=4af12c52e799d03c0a7eb9815a3cbf4f5b8e0ecb;hpb=ddea22544989152f135ae4eeba00c2cca69078b5;p=gosa.git diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 4af12c52e..3d59015a2 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -267,7 +267,7 @@ class plugin { /* Save values to object */ foreach ($this->attributes as $val){ - if ($this->acl_is_writable($val) && isset ($_POST["$val"])){ + if ($this->acl_is_writeable($val) && isset ($_POST["$val"])){ /* Check for modifications */ if (get_magic_quotes_gpc()) { $data= stripcslashes($_POST["$val"]); @@ -289,9 +289,9 @@ class plugin $data = ""; } $this->$val= $data; - echo "".$val."
"; + //echo "".$val."
"; }else{ - echo "".$val."
"; + //echo "".$val."
"; } } } @@ -1399,7 +1399,7 @@ echo "FIXME: remove_snapshot uses old acl's
"; } - function acl_is_writable($attribute) + function acl_is_writeable($attribute) { $ui= get_userinfo(); return preg_match('/w/', $ui->get_permissions($this->dn, get_class($this), $attribute)); @@ -1426,6 +1426,19 @@ echo "FIXME: remove_snapshot uses old acl's
"; return preg_match('/d/', $ui->get_permissions($this->dn, get_class($this), '0')); } + + function acl_is_moveable() + { + $ui= get_userinfo(); + return preg_match('/m/', $ui->get_permissions($this->dn, get_class($this), '0')); + } + + + function getacl($attribute) + { + $ui= get_userinfo(); + return $ui->get_permissions($this->dn, get_class($this), $attribute); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>