diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index 30a0939dc5a5274bda51f6d6ee18ce4dde18ee7f..d1673bc9371baa466afbd095eedae984ad051740 100644 (file)
/* Assign attributes */
foreach ($this->attributes as $attr){
- $smarty->assign($attr."ACL", chkacl($this->acl, $attr));
$smarty->assign("$attr", $this->$attr);
}
plugin::save_object();
$this->netConfigDNS->save_object();
/* Save base, since this is no LDAP attribute */
- if (isset($_POST['base']) && chkacl($this->acl, "create") == ""){
+ if (isset($_POST['base']) && $this->acl_is_moveable(){
$this->base= $_POST['base'];
}
}
$ui= get_userinfo();
$acl= get_permissions ($this->dn, $ui->subtreeACL);
$acl= get_module_permission($acl, "component", $this->dn);
- if (chkacl($acl, "create") != ""){
+ if(!$this->acl_is_createable() && $this->dn == "new"){
$message[]= _("You have no permissions to create a component on this 'Base'.");
}