index 162236676e18903cb4add01832570c66a59ec66d..034f8cefe107b388f1f5a2a2cb6ee0acc628486e 100644 (file)
/* This function calls all nescessary functions to generate the fai class summary tree */
function execute()
{
+
+ /* Skip this if fai is deactivated */
+ $tmp = search_config($this->config->data,"faiManagement","CLASS");
+ if(empty($tmp)){
+ $str = "<h2>"._("You can't use this plugin until FAI is activated.")."</h2>";
+ return $str;
+ }
+
/* Check if we must (re)init the this tab */
if(!$this->InitCalled){
$this->init();
$dn = $this->Releases [$this->Release];
$resolvedClasses = get_all_objects_for_given_base($dn,"(&(objectClass=FAIclass)(cn=".$class."))");
- /* Check acls -> are we allowed to view the config summary ? */
- if(!$this->acl_is_readable("readable")) {
- return;
- }
-
/* Try to fetch all types of fai objects with the given cn */
foreach($resolvedClasses as $obj){