Code

Do not allow to remove freezed classes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Jan 2010 09:19:06 +0000 (09:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Jan 2010 09:19:06 +0000 (09:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15074 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc
gosa-plugins/fai/admin/fai/class_filterFAI.inc
gosa-plugins/fai/admin/fai/fai-list.xml

index f245e934d934564cae0efd8838ead932f451608f..d8b8f15bb563e4c0e54f1c93fa257eeb4819beae 100644 (file)
@@ -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;
index 61d12f93696f5d7fe7a22a1ff20d73eb390fa559..06ae4ef7974414cda7e4f841bbb5ef7f547aeb79 100644 (file)
@@ -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;
         
index a44a2a34ac76bee4bd7a09dec9e985cbc3017a9e..23d2e8aad13387be8364d9250ea127ee86386fa9 100644 (file)
     <action>
       <name>remove</name>
       <type>entry</type>
+      <objectclass>FAKE_OC_IsBranch</objectclass>
       <image>images/lists/trash.png</image>
       <label>Remove role</label>
     </action>