Changeset 4861 in subversion


Ignore:
Timestamp:
Jun 17, 2011 4:07:43 AM (2 years ago)
Author:
alec
Message:
  • IMproved namespace roots handling
File:
1 edited

Legend:

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

    r4809 r4861  
    9797        } 
    9898*/ 
     99        // Namespace root 
     100        if ($args['options']['is_root']) { 
     101            return $args; 
     102        } 
     103 
     104        // Get MYRIGHTS 
     105        if (!($myrights = $args['options']['rights'])) { 
     106            return $args; 
     107        } 
     108 
    99109        // Do nothing if no ACL support 
    100110        if (!$this->rc->imap->get_capability('ACL')) { 
    101             return $args; 
    102         } 
    103  
    104         // Get MYRIGHTS 
    105         if (!($myrights = $args['options']['rights'])) { 
    106111            return $args; 
    107112        } 
     
    212217                    $this->gettext('acl'.$key))); 
    213218        } 
    214          
     219 
    215220        $out .= "\n" . html::tag('ul', $attrib, $ul, html::$common_attrib); 
    216221 
     
    442447        // Save state in user preferences 
    443448        $this->rc->user->save_prefs(array('acl_advanced_mode' => $advanced)); 
    444          
     449 
    445450        $out = $this->list_rights(); 
    446451 
     
    456461     * 
    457462     * @return string HTML content 
    458      */         
     463     */ 
    459464    function acl2text($rights) 
    460465    { 
Note: See TracChangeset for help on using the changeset viewer.