Code

Updated gofax addon
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Oct 2008 12:55:03 +0000 (12:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Oct 2008 12:55:03 +0000 (12:55 +0000)
-Fixed self modify for Fax reports.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12742 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc

index 9c16f15f4addcfd0462222001d7514e559d42e44..0a67ff00063e52a61ac01cfc46e2ad7aa99e713d 100644 (file)
@@ -239,7 +239,7 @@ class faxreport extends plugin
           "(telephoneNumber=$s)(facsimileTelephoneNumber=$s)(mobile=$s)".
           "(pager=$s)(cn=$s)(givenName=$s)(sn=$s)(personalTitle=$s)".
           "(title=$s)))";
-  
       $res = get_list($filter, "users", $this->search_base, array("uid"), GL_SUBSEARCH );
 
       /* Check if we are allowed to collect fax data */
@@ -251,6 +251,12 @@ class faxreport extends plugin
         }
       }
 
+      /* Add self uid, if we have self acl
+       */   
+      if(preg_match("/(r|w)/",$this->ui->get_permissions($this->ui->dn,"faxreport/faxreport",""))){
+        $fax_users[$this->ui->dn] = $this->ui->uid;
+      }
+
       $this->fax_users = $fax_users;
 
       /* Prepare SQL query */