From 1727d5de84cc32a98e2eef8583146ff55ee34411 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 29 Sep 2006 10:46:29 +0000 Subject: [PATCH] Some little acls fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4838 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_glpiPrinterCartridgesEdit.inc | 9 --------- plugins/admin/systems/class_winGeneric.inc | 3 --- 2 files changed, 12 deletions(-) diff --git a/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc b/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc index 8e6a23d87..c130618a4 100644 --- a/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc +++ b/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc @@ -37,12 +37,6 @@ class glpiPrinterCartridgesEdit extends plugin function glpiPrinterCartridgesEdit ($config, $dn,$printer_type,$values = NULL ) { plugin::plugin ($config, $dn); - - $ui= get_userinfo(); - $acl= get_permissions ($this->dn, $ui->subtreeACL); - $this->acl= get_module_permission($acl, "component", $this->dn); - - foreach($this->attributes as $val){ if(isset($values[$val])){ $this->$val = $values[$val]; @@ -50,11 +44,8 @@ class glpiPrinterCartridgesEdit extends plugin $this->$val = ""; } } - $this->needToCatch = true; - $this->printer_type = $printer_type; - } function remove_from_parent() diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc index 42efcc779..694765876 100644 --- a/plugins/admin/systems/class_winGeneric.inc +++ b/plugins/admin/systems/class_winGeneric.inc @@ -156,9 +156,6 @@ class wingeneric extends plugin $message= array_merge($message, $this->netConfigDNS->check()); $this->dn= "cn=".$this->cn.",ou=netdevices,ou=systems,".$this->base; - $ui= get_userinfo(); - $acl= get_permissions ($this->dn, $ui->subtreeACL); - $acl= get_module_permission($acl, "component", $this->dn); if(!$this->acl_is_createable() && $this->dn == "new"){ $message[]= _("You have no permissions to create a component on this 'Base'."); } -- 2.30.2