Code

Some little acls fixes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Sep 2006 10:46:29 +0000 (10:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Sep 2006 10:46:29 +0000 (10:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4838 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc
plugins/admin/systems/class_winGeneric.inc

index 8e6a23d8751a4cd8016e1103899cd1b0ea1a9b11..c130618a4afb7e78799145d5c0a1c52ee2c8e3cc 100644 (file)
@@ -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()
index 42efcc779f3cea64ae02e121fd85db1176f21d9e..6947658769a52334385023b1c9c15ffba9951bec 100644 (file)
@@ -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'.");
     }