Changeset 4877 in subversion


Ignore:
Timestamp:
Jun 24, 2011 2:17:18 PM (2 years ago)
Author:
alec
Message:
  • Added ACL management for addressbook edit form (kolab_addressbook plugin)
Location:
trunk/plugins/acl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/acl/acl.js

    r4863 r4877  
    22 * ACL plugin script 
    33 * 
    4  * @version 0.2 
     4 * @version 0.3 
    55 * @author Aleksander Machniak <alec@alec.pl> 
    66 */ 
  • trunk/plugins/acl/acl.php

    r4863 r4877  
    44 * Folders Access Control Lists Management (RFC4314, RFC2086) 
    55 * 
    6  * @version 0.2 
     6 * @version 0.3 
    77 * @author Aleksander Machniak <alec@alec.pl> 
    88 * 
     
    2626class acl extends rcube_plugin 
    2727{ 
    28     public $task = 'settings'; 
     28    public $task = 'settings|addressbook'; 
    2929 
    3030    private $rc; 
     
    4242        // Register hooks 
    4343        $this->add_hook('folder_form', array($this, 'folder_form')); 
     44        // kolab_addressbook plugin 
     45        $this->add_hook('addressbook_form', array($this, 'folder_form')); 
    4446        // Plugin actions 
    45         $this->register_action('plugin.acl', array($this, 'acl_actions'));  
     47        $this->register_action('plugin.acl', array($this, 'acl_actions')); 
    4648    } 
    4749 
     
    117119        $this->rc->output->include_script('list.js'); 
    118120        $this->include_stylesheet($this->local_skin_path().'/acl.css'); 
     121 
     122        // add Info fieldset if it doesn't exist 
     123        if (!isset($args['form']['props']['fieldsets']['info'])) 
     124            $args['form']['props']['fieldsets']['info'] = array( 
     125                'name'  => rcube_label('info'), 
     126                'content' => array()); 
    119127 
    120128        // Display folder rights to 'Info' fieldset 
  • trunk/plugins/acl/localization/pl_PL.inc

    r4809 r4877  
    2424$labels['acle'] = 'PorzÄ 
    2525dkowanie folderu (Expunge)'; 
    26 $labels['aclx'] = 'Usuwanie folder (Delete)'; 
     26$labels['aclx'] = 'Usuwanie folderu (Delete)'; 
    2727$labels['acla'] = 'Administracja (Administer)'; 
    2828 
Note: See TracChangeset for help on using the changeset viewer.