From d0a77dfbb16354fc38a365d6047fabd94beedb86 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 20 Oct 2008 12:55:03 +0000 Subject: [PATCH] Updated gofax addon -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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc index 9c16f15f4..0a67ff000 100644 --- a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc +++ b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc @@ -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 */ -- 2.30.2