From 39f0149bdf7c6bbce34d8f72f3e7937948ec1120 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 19 Nov 2007 12:31:21 +0000 Subject: [PATCH] Removed chkacl calls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7813 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/godfs/class_dfsgeneric.inc | 4 ++-- plugins/admin/systems/class_componentGeneric.inc | 2 +- plugins/admin/systems/class_phoneGeneric.inc | 2 +- plugins/admin/systems/class_servGeneric.inc | 2 +- plugins/admin/systems/class_terminalGeneric.inc | 2 +- plugins/admin/systems/class_workstationGeneric.inc | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/addons/godfs/class_dfsgeneric.inc b/plugins/addons/godfs/class_dfsgeneric.inc index c3941b5f8..12a2ed2df 100644 --- a/plugins/addons/godfs/class_dfsgeneric.inc +++ b/plugins/addons/godfs/class_dfsgeneric.inc @@ -192,9 +192,9 @@ plugin::save_object(); #echo "base = ".$_POST['base']."
\n"; #} - if (chkacl($this->acl, "create") == "") { +# if (chkacl($this->acl, "create") == "") { $this->base = $_POST['base']; - } +# } } function delete() { diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc index 251139852..1a0d15caa 100644 --- a/plugins/admin/systems/class_componentGeneric.inc +++ b/plugins/admin/systems/class_componentGeneric.inc @@ -187,7 +187,7 @@ class componentGeneric extends plugin } /* Check if given name is a valid host/dns name */ - if(!is_dns_name($this->cn) && chkacl ($this->acl, "cn") == ""){ + if(!is_dns_name($this->cn)){ $message[] = _("Please specify a valid name for this object."); } diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc index 021990c8a..f3269eeb3 100644 --- a/plugins/admin/systems/class_phoneGeneric.inc +++ b/plugins/admin/systems/class_phoneGeneric.inc @@ -335,7 +335,7 @@ class phoneGeneric extends plugin } /* Check if given name is a valid host/dns name */ - if(!is_dns_name($this->cn) && chkacl ($this->acl, "cn") == ""){ + if(!is_dns_name($this->cn) ){ $message[] = _("Please specify a valid name for this object."); } diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index cf0eeffd9..b46e85b29 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -297,7 +297,7 @@ class servgeneric extends plugin } /* Check if given name is a valid host/dns name */ - if(!is_dns_name($this->cn) && chkacl ($this->acl, "cn") == ""){ + if(!is_dns_name($this->cn)){ $message[] = _("Please specify a valid name for this object."); } diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index f10770f3e..f129061de 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -455,7 +455,7 @@ class termgeneric extends plugin } /* Check if given name is a valid host/dns name */ - if(!is_dns_name($this->cn) && chkacl ($this->acl, "cn") == ""){ + if(!is_dns_name($this->cn) ){ $message[] = _("Please specify a valid name for this object."); } diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index a19cd8617..eb3898345 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -436,7 +436,7 @@ class workgeneric extends plugin } /* Check if given name is a valid host/dns name */ - if(!is_dns_name($this->cn) && chkacl ($this->acl, "cn") == ""){ + if(!is_dns_name($this->cn)){ $message[] = _("Please specify a valid name for this object."); } -- 2.30.2