diff --git a/plugins/personal/connectivity/class_connectivity.inc b/plugins/personal/connectivity/class_connectivity.inc
index 12be3de5937ad8e1578b2f8492fb311d5d6c73b8..83252cc8a75011f80f57e8f2c8aae3718bbde9d7 100644 (file)
/* Execude objects */
$is_first= true;
+
+ $ReadOnly = (!is_object($this->parent) && !isset($_SESSION['edit']));
+
foreach ($this->plugin_name as $name){
+ $this->plugin[$name]->ReadOnly = $ReadOnly;
if (!$is_first){
$display.= '<p class="seperator"> </p>';
} else {
}
}
+ /* Prepare the connectivity obj
+ */
+ function PrepareForCopyPaste($obj)
+ {
+ $tmp = $this->plugin;
+ plugin::PrepareForCopyPaste($obj);
+ $this->plugin = $tmp;
+ foreach($obj->plugin as $key => $plug){
+ $this->plugin[$key]->PrepareForCopyPaste($plug);
+ }
+ }
+
+/* Return plugin informations for acl handling
+#FIXME We should check here, if the user has access to one of the subClasses */
+ function plInfo()
+ {
+ return (array(
+ "plShortName" => _("Connectivity"),
+ "plDescription" => _("Connectivity settings"),
+ "plSelfModify" => TRUE,
+ "plDepends" => array("user"),
+ "plPriority" => 5, // Position in tabs
+ "plSection" => "personal", // This belongs to personal
+ "plCategory" => array("users"),
+ "plOptions" => array(),
+ "plProvidedAcls" => array()
+ ));
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: