From b58bd1a6df365890c2ea6c36b82e1f87e2cc72c0 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Mar 2008 14:02:47 +0000 Subject: [PATCH] Hide apply for new Devices git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9390 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_systemManagement.inc | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2