X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_servRepository.inc;h=1fc0458ef9fd6f388c7c71077283ca5a5586f74a;hb=30827656c010419d41e5249cee16edf2d01969b9;hp=4640786b87b45373d64b34af12e8c6f4d2d118b9;hpb=9738f85a5b4cb0fefc296a53b7e80f456b54297a;p=gosa.git diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index 4640786b8..1fc0458ef 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -20,12 +20,22 @@ class servrepository extends plugin /* Repositories */ var $repositories = array(); - var $FAIrepository = array(); + var $FAIrepository = array(); + + var $fai_activated = FALSE; function servrepository ($config, $dn= NULL, $parent= NULL) { plugin::plugin ($config, $dn, $parent); + /* Skip this if fai is deactivated */ + $tmp = search_config($this->config->data,"faiManagement","CLASS"); + if(!empty($tmp)){ + $this->fai_activated = TRUE; + }else{ + return; + } + $ui = get_userinfo(); $tmp= get_permissions ($this->dn, $ui->subtreeACL); $this->acl= get_module_permission($tmp, "FAIclass", $this->dn); @@ -77,6 +87,11 @@ class servrepository extends plugin /* Call parent execute */ plugin::execute(); + if(!$this->fai_activated){ + $str = "