From 35ca3496731d59499b428b411b90a0c277b77fdb Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Jul 2006 04:56:34 +0000 Subject: [PATCH] Added acl for some plugins git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4143 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../blocklists/class_blocklistManagement.inc | 13 +++++++++++++ .../gofax/faxaccount/class_gofaxAccount.inc | 19 +++++++++++++++++++ plugins/gofax/faxreports/class_faxreport.inc | 13 +++++++++++++ plugins/gofon/fonreports/class_fonreport.inc | 13 +++++++++++++ 4 files changed, 58 insertions(+) diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc index 9d46da580..9a5fc55c2 100644 --- a/plugins/gofax/blocklists/class_blocklistManagement.inc +++ b/plugins/gofax/blocklists/class_blocklistManagement.inc @@ -553,6 +553,19 @@ class blocklist extends plugin } } + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plDescription" => _("Fax Blocklists"), + "plSelfModify" => TRUE, + "plDepends" => array("objectClass" => "goFaxSBlock", "description"=> _("Fax blocklist")), + "cn" => _("Name"), + "description" => _("Description"), + "base" => _("Base"), + "type" => _("Blocklist type"))); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index aacc13e84..1510c0d50 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -804,6 +804,25 @@ class gofaxAccount extends plugin } } + + /* Return plugin informations for acl handling + #FIXME some attributes are still missing in this plugin acls */ + function plInfo() + { + return (array( + "plDescription" => _("Fax account"), + "plSelfModify" => TRUE, + "plDepends" => array("objectClass" => "gosaAccount"), + + "goFaxIsEnabled" => "!!! FIXME "._("Enable/Disable fax"), + "goFaxRBlocklist" => _("Receive blocklist"), + "goFaxSBlocklist" => _("Send blocklist"), + "facsimileTelephoneNumber" => _("Fax number"), // goFaxDeliveryMode + "goFaxPrinter" => _("Deliver fax to printer"), +// "goFaxDivertNumber" => _(""), + "goFaxFormat" => _("Delivery format"), + "goFaxLanguage" => _("Language"))); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/gofax/faxreports/class_faxreport.inc b/plugins/gofax/faxreports/class_faxreport.inc index f6b05cc30..57641e7fc 100644 --- a/plugins/gofax/faxreports/class_faxreport.inc +++ b/plugins/gofax/faxreports/class_faxreport.inc @@ -376,6 +376,19 @@ class faxreport extends plugin } register_global("faxreportfilter",$faxreportfilter); } + + + /* Return plugin informations for acl handling + #FIXME You can only read attributes within this report plugin */ + function plInfo() + { + return (array( + "plDescription" => _("Fax reports"), + "plSelfModify" => TRUE, + "plDepends" => array("objectClass" => "gosaAccount"), + "connectivity" => "!!! FIXME "._("Fax reports"))); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/gofon/fonreports/class_fonreport.inc b/plugins/gofon/fonreports/class_fonreport.inc index 31efc71f3..b4432d3bf 100644 --- a/plugins/gofon/fonreports/class_fonreport.inc +++ b/plugins/gofon/fonreports/class_fonreport.inc @@ -346,6 +346,19 @@ class fonreport extends plugin ORDER BY ".$this->fields[$this->sort]." $desc;"; return($query); } + + + /* Return plugin informations for acl handling + #FIXME You can only read attributes within this report plugin */ + function plInfo() + { + return (array( + "plDescription" => _("Phone reports"), + "plSelfModify" => TRUE, + "plDepends" => array("objectClass" => "fonreport"), + + "fonreport" => "!!! FIXME "._("Phone reports"))); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2