[Svn] r4877 - in trunk/plugins/acl: . localization

trac at roundcube.net trac at roundcube.net
Fri Jun 24 20:17:18 CEST 2011


Author: alec
Date: 2011-06-24 13:17:18 -0500 (Fri, 24 Jun 2011)
New Revision: 4877

Modified:
   trunk/plugins/acl/acl.js
   trunk/plugins/acl/acl.php
   trunk/plugins/acl/localization/pl_PL.inc
Log:
- Added ACL management for addressbook edit form (kolab_addressbook plugin)


Modified: trunk/plugins/acl/acl.js
===================================================================
--- trunk/plugins/acl/acl.js	2011-06-24 17:50:03 UTC (rev 4876)
+++ trunk/plugins/acl/acl.js	2011-06-24 18:17:18 UTC (rev 4877)
@@ -1,7 +1,7 @@
 /**
  * ACL plugin script
  *
- * @version 0.2
+ * @version 0.3
  * @author Aleksander Machniak <alec at alec.pl>
  */
 

Modified: trunk/plugins/acl/acl.php
===================================================================
--- trunk/plugins/acl/acl.php	2011-06-24 17:50:03 UTC (rev 4876)
+++ trunk/plugins/acl/acl.php	2011-06-24 18:17:18 UTC (rev 4877)
@@ -3,7 +3,7 @@
 /**
  * Folders Access Control Lists Management (RFC4314, RFC2086)
  *
- * @version 0.2
+ * @version 0.3
  * @author Aleksander Machniak <alec at alec.pl>
  *
  *
@@ -25,7 +25,7 @@
 
 class acl extends rcube_plugin
 {
-    public $task = 'settings';
+    public $task = 'settings|addressbook';
 
     private $rc;
     private $supported = null;
@@ -41,8 +41,10 @@
 
         // Register hooks
         $this->add_hook('folder_form', array($this, 'folder_form'));
+        // kolab_addressbook plugin
+        $this->add_hook('addressbook_form', array($this, 'folder_form'));
         // Plugin actions
-        $this->register_action('plugin.acl', array($this, 'acl_actions')); 
+        $this->register_action('plugin.acl', array($this, 'acl_actions'));
     }
 
     /**
@@ -117,6 +119,12 @@
         $this->rc->output->include_script('list.js');
         $this->include_stylesheet($this->local_skin_path().'/acl.css');
 
+        // add Info fieldset if it doesn't exist
+        if (!isset($args['form']['props']['fieldsets']['info']))
+            $args['form']['props']['fieldsets']['info'] = array(
+                'name'  => rcube_label('info'),
+                'content' => array());
+
         // Display folder rights to 'Info' fieldset
         $args['form']['props']['fieldsets']['info']['content']['myrights'] = array(
             'label' => Q($this->gettext('myrights')),

Modified: trunk/plugins/acl/localization/pl_PL.inc
===================================================================
--- trunk/plugins/acl/localization/pl_PL.inc	2011-06-24 17:50:03 UTC (rev 4876)
+++ trunk/plugins/acl/localization/pl_PL.inc	2011-06-24 18:17:18 UTC (rev 4877)
@@ -21,7 +21,7 @@
 $labels['acld'] = 'Usuwanie wiadomości (Delete)';
 $labels['aclt'] = 'Usuwanie wiadomości (Delete)';
 $labels['acle'] = 'Porządkowanie folderu (Expunge)';
-$labels['aclx'] = 'Usuwanie folder (Delete)';
+$labels['aclx'] = 'Usuwanie folderu (Delete)';
 $labels['acla'] = 'Administracja (Administer)';
 
 $labels['aclfull'] = 'Wszystkie';

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn


More information about the Svn mailing list