From: hickert Date: Wed, 6 Jan 2010 09:19:06 +0000 (+0000) Subject: Do not allow to remove freezed classes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7153f17bda0c4db5b6ad809833a26d0399011ddd;p=gosa.git Do not allow to remove freezed classes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15074 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index f245e934d..d8b8f15bb 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -43,6 +43,11 @@ class faiManagement extends management var $fai_base = ""; var $acl_base = ""; + var $lock_type = ""; + var $lock_dn = ""; + var $lock_name = ""; + + function __construct($config,$ui) { $this->config = $config; diff --git a/gosa-plugins/fai/admin/fai/class_filterFAI.inc b/gosa-plugins/fai/admin/fai/class_filterFAI.inc index 61d12f936..06ae4ef79 100644 --- a/gosa-plugins/fai/admin/fai/class_filterFAI.inc +++ b/gosa-plugins/fai/admin/fai/class_filterFAI.inc @@ -55,6 +55,11 @@ class filterFAI extends filterLDAP{ $obj['FAIstate'] = $entry['FAIstate']; $obj['description'] = $object['description'][0]; $obj['objectClass'] = $object['objectClass']; + + if(!preg_match("/freeze/i", $entry['FAIstate'])){ + $obj['objectClass'][] = "FAKE_OC_IsBranch"; + } + $obj['TYPES'][] = $type; $obj['GROUPS'][$type] = $object; diff --git a/gosa-plugins/fai/admin/fai/fai-list.xml b/gosa-plugins/fai/admin/fai/fai-list.xml index a44a2a34a..23d2e8aad 100644 --- a/gosa-plugins/fai/admin/fai/fai-list.xml +++ b/gosa-plugins/fai/admin/fai/fai-list.xml @@ -117,6 +117,7 @@ remove entry + FAKE_OC_IsBranch images/lists/trash.png