From: hickert Date: Thu, 6 Mar 2008 14:02:47 +0000 (+0000) Subject: Hide apply for new Devices X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b58bd1a6df365890c2ea6c36b82e1f87e2cc72c0;p=gosa.git Hide apply for new Devices git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9390 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 944055fc0..33c04ec1c 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -975,6 +975,7 @@ class systems extends plugin $dialog = FALSE; $hide_apply = $this->dn == "new"; + $hide_apply = ($this->dn == "new") || (preg_match("/".normalizePreg(get_ou("incomingou"))."/",$this->dn)); if(is_object($this->systab) && !isset($this->systab->by_object)){ $dialog = TRUE; $hide_apply = TRUE;