summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ebccb3e)
raw | patch | inline | side by side (parent: ebccb3e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Oct 2008 13:02:07 +0000 (13:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Oct 2008 13:02:07 +0000 (13:02 +0000) |
-Use correct acl category.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12752 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12752 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc b/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc
index ff6bce8d2bd3072b82d58ffd4a53a075957a1e57..ff7cb23d2a4bd311017848b26fd965771b355a00 100644 (file)
/* Log view */
if(!$this->view_logged){
$this->view_logged = TRUE;
- new log("view","gofon/".get_class($this),$this->dn);
+ new log("view","fonreport/".get_class($this),$this->dn);
}
/*****************
Smarty
*****************/
$bases = array();
- $cat_bases = $this->ui->get_module_departments("gofon");
+ $cat_bases = $this->ui->get_module_departments("fonreport");
foreach($this->config->idepartments as $dn => $name){
if(in_array_ics($dn,$cat_bases)){
$bases[$dn] = $name;
if($attr == "duration") continue;
- $acl = $this->ui->get_permissions($this->search_base,"gofon/fonreport",$attr);
+ $acl = $this->ui->get_permissions($this->search_base,"fonreport/fonreport",$attr);
if(!preg_match("/r/",$acl)){
$line[$attr] = $no_acl;
}
}
- if($this->ui->get_permissions($this->search_base,"gofon/fonreport","calldate")){
+ if($this->ui->get_permissions($this->search_base,"fonreport/fonreport","calldate")){
$hour= substr($line["calldate"], 11, 2);
$minute=substr($line["calldate"], 14, 2);
$format= _("Y-M-D");
}
}
- if($this->ui->get_permissions($this->search_base,"gofon/fonreport","duration")){
+ if($this->ui->get_permissions($this->search_base,"fonreport/fonreport","duration")){
$append_str .= "<td>".$this->gen_duration($line["duration"])."</td>";
}else{
$append_str .= "<td>".$no_acl."</td>";
"plDepends" => array(),
"plPriority" => 0,
"plSection" => array("administration"),
- "plCategory" => array("fonreport"),
+ "plCategory" => array(
+ "fonreport" => array(
+ "description" => _("Phone reports"),
+ "objectClass" => "None")),
+
"plProvidedAcls" => array(
"calldate" =>_("Date"),