summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2aeeeff)
raw | patch | inline | side by side (parent: 2aeeeff)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Dec 2006 10:28:49 +0000 (10:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Dec 2006 10:28:49 +0000 (10:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5334 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servRepository.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 4640786b87b45373d64b34af12e8c6f4d2d118b9..1fc0458ef9fd6f388c7c71077283ca5a5586f74a 100644 (file)
/* 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);
/* Call parent execute */
plugin::execute();
+ if(!$this->fai_activated){
+ $str = "<h2>"._("You can't use this plugin until FAI is activated.")."</h2>";
+ return $str;
+ }
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
function remove_from_parent()
{
+
+ if(!$this->fai_activated) return;
+
/* Skip if not allowed */
$ui = get_userinfo();
$tmp= get_permissions ($this->dn, $ui->subtreeACL);
/* Save to LDAP */
function save()
{
-
+ if(!$this->fai_activated) return;
+
/* Skip if not allowed */
$ui = get_userinfo();
$tmp= get_permissions ($this->dn, $ui->subtreeACL);