Code

Added acl for some plugins
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Jul 2006 04:56:34 +0000 (04:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Jul 2006 04:56:34 +0000 (04:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4143 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/blocklists/class_blocklistManagement.inc
plugins/gofax/faxaccount/class_gofaxAccount.inc
plugins/gofax/faxreports/class_faxreport.inc
plugins/gofon/fonreports/class_fonreport.inc

index 9d46da580e7f93f49a51ac0cde24d271369ead00..9a5fc55c29e80420f5533f3a81079c21c1fe02eb 100644 (file)
@@ -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:
 ?>
index aacc13e846646ee71bfb3b69f422f09882211b7c..1510c0d5079ab190adcc7c76f53774528c3c23c4 100644 (file)
@@ -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:
index f6b05cc304488df56d693c387d26638fad18b5ea..57641e7fc2eeb608ceb9bf2251189a3c7669c47c 100644 (file)
@@ -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:
 ?>
index 31efc71f39f963be33ea2cdde7cfe08bbc7b55d6..b4432d3bf61785844ac74bf9c2a9e77995fe94d8 100644 (file)
@@ -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:
 ?>