summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60b7435)
raw | patch | inline | side by side (parent: 60b7435)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 29 Sep 2006 10:46:29 +0000 (10:46 +0000) | ||
committer | hickert <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 | patch | blob | history | |
plugins/admin/systems/class_winGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc b/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc
index 8e6a23d8751a4cd8016e1103899cd1b0ea1a9b11..c130618a4afb7e78799145d5c0a1c52ee2c8e3cc 100644 (file)
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];
$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 42efcc779f3cea64ae02e121fd85db1176f21d9e..6947658769a52334385023b1c9c15ffba9951bec 100644 (file)
$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'.");
}