Code

Updated acls
[gosa.git] / plugins / personal / connectivity / class_opengwAccount.inc
index 9e9ce7f6dd424053425fcec2e43b2c7172eae901..c4042e3f3ae79ad9e0c9c25c7d8e1924643363b1 100644 (file)
@@ -6,11 +6,6 @@ class opengwAccount extends plugin
        var $plHeadline       = "Opengroupware account";
        var $plDescription    = "This does something";
 
-       /* CLI vars */
-       var $cli_summary      = "Manage users webdav account";
-       var $cli_description  = "Some longer text\nfor help";
-       var $cli_parameters   = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
        /* attribute list for save action */
        var $attributes       = array();
        var $objectclasses    = array();
@@ -128,7 +123,7 @@ class opengwAccount extends plugin
                        $smarty->assign($ar,array());
                }
                $smarty->assign("OGWstate"," disabled ");
-               foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount","is_account","OGWPassword") as $ar){
+               foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount","is_account"/*,"OGWPassword"*/) as $ar){
                        $smarty->assign($ar,"");
                        $smarty->assign($ar."CHK","");
                        $smarty->assign($ar."ACL"," disabled ");
@@ -154,7 +149,7 @@ class opengwAccount extends plugin
 
                                        /* Show main page */
                                        $smarty->assign("OGWstate"," disabled ");
-                                       foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount","OGWPassword") as $ar){
+                                       foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount"/*,"OGWPassword"*/) as $ar){
                                                $smarty->assign($ar."ACL",chkacl($this->acl,$ar));
                                        }
 
@@ -219,6 +214,7 @@ class opengwAccount extends plugin
 
                                } 
                        }
+      /*
       if($this->SetPassword == false){
         if($_SESSION['js'] == 1){
           $smarty->assign("OGWPasswordACL"," disabled ");
@@ -232,6 +228,7 @@ class opengwAccount extends plugin
         $smarty->assign("OGWPassword",$this->OGWPassword);
         $smarty->assign("OGWPasswordCHK"," checked ");
       }
+      */
                $display.= $smarty->fetch (get_template_path('opengw.tpl', TRUE, dirname(__FILE__)));
                return ($display);
        }
@@ -253,6 +250,7 @@ class opengwAccount extends plugin
                /* get post data */
                if($this->is_account){
 
+      /*
       if(isset($_POST['SetPassword'])){
         $this->SetPassword =true;
       }else{
@@ -269,6 +267,7 @@ class opengwAccount extends plugin
           unset($this->info['password']);
         }
       }
+      */
 
                        /* Get selected team chkboxes */
                        $this->info['TeamIDis'] = array();
@@ -322,6 +321,23 @@ class opengwAccount extends plugin
                }
        }
 
+  
+  function PrepareForCopyPaste($src){
+    // Nothing to do, because this object can't be copied ... yet
+  }
+
+
+ /* Return plugin informations for acl handling 
+      #FIXME This is only an enable/disable checkbox for this account, there is possibly a better solution available later */  
+  function plInfo()
+  {
+    return (array(     
+          "plDescription"   => _("Open groupware account settings"),
+          "plSelfModify"    => TRUE,
+          "plDepends"       => array("objectClass" => "gosaAccount"),
+          "opengwAccount"   => "!!! FIXME "._("Open groupware account")));
+  }
+  
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>