Code

Add dep check to fai
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 May 2006 04:38:59 +0000 (04:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 May 2006 04:38:59 +0000 (04:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3493 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc
plugins/admin/fai/class_faiManagement.inc

index 45ae25876fe246c7a5ac71d15d24ce69ff5a50a5..fda4672ef5937a3495d71aaf474856750fb53c9f 100644 (file)
@@ -1982,8 +1982,7 @@ function is_department_name_reserved($name,$base)
   $reservedName = array("systems","apps","incomming","internal","accounts","fax","addressbook",
                           preg_replace("/ou=(.*),/","\\1",get_people_ou()),
                           preg_replace("/ou=(.*),/","\\1",get_groups_ou()));
-
-  $follwedNames['/ou=fai,ou=configs,ou=systems,/'] = array("fai","hooks","templates","scripts","disks","packages","variables","profiles");
+  $follwedNames['/ou=fai,ou=configs,ou=systems,/'] = array("fai","hooks","templates","scripts","disk","packages","variables","profiles");
 
   /* Check if name is one of the reserved names */
   if(in_array_ics($name,$reservedName)) {
index ea0871b9ee1f725bd498ae2236b6cd38ff854f51..b134623f088450d70d8a42dc6fe6c2309c3ba2c4 100644 (file)
@@ -706,7 +706,7 @@ class faiManagement extends plugin
       return(false);
     }elseif(empty($name)){
       return(false);
-    }elseif(in_array($name,array("fai","disk","packages","scripts","templates","hooks","variables","profiles","apps"))){
+    }elseif(is_department_name_reserved($name,$base)){
       return(false);
     }
     return(true);