Changeset b866a27 in github
- Timestamp:
- Jun 28, 2012 4:43:50 AM (11 months ago)
- Branches:
- master, HEAD
- Children:
- d901205
- Parents:
- a60d139
- Files:
-
- 3 edited
-
plugins/acl/acl.php (modified) (2 diffs)
-
plugins/acl/package.xml (modified) (1 diff)
-
program/include/rcube_imap.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/acl/acl.php
r48e9c14 rb866a27 129 129 function folder_form($args) 130 130 { 131 $mbox_imap = $args['options']['name']; 132 $myrights = $args['options']['rights']; 133 131 134 // Edited folder name (empty in create-folder mode) 132 $mbox_imap = $args['options']['name'];133 135 if (!strlen($mbox_imap)) { 134 136 return $args; … … 140 142 } 141 143 */ 142 // Namespace root143 if ($args['options']['is_root']) {144 return $args;145 }146 147 144 // Get MYRIGHTS 148 if (!($myrights = $args['options']['rights'])) { 149 return $args; 150 } 151 152 // Do nothing if no ACL support 153 if (!$this->rc->storage->get_capability('ACL')) { 145 if (empty($myrights)) { 154 146 return $args; 155 147 } -
plugins/acl/package.xml
r48e9c14 rb866a27 14 14 <active>yes</active> 15 15 </lead> 16 <date>2012-0 3-13</date>16 <date>2012-06-28</date> 17 17 <version> 18 <release>0. 8</release>18 <release>0.9</release> 19 19 <api>0.7</api> 20 20 </version> -
program/include/rcube_imap.php
r6bb44a6 rb866a27 3230 3230 $cached = $this->get_cache($cache_key); 3231 3231 3232 if (is_array($cached)) 3232 if (is_array($cached)) { 3233 3233 return $cached; 3234 } 3234 3235 3235 3236 $acl = $this->get_capability('ACL'); … … 3268 3269 $options['attributes'] = $this->folder_attributes($folder, true); 3269 3270 $options['namespace'] = $this->folder_namespace($folder); 3270 $options['rights'] = $acl && !$options['is_root'] ? (array)$this->my_rights($folder) : array();3271 3271 $options['special'] = in_array($folder, $this->default_folders); 3272 3272 3273 // Set 'noselect' and 'norename' flags3273 // Set 'noselect' flag 3274 3274 if (is_array($options['attributes'])) { 3275 3275 foreach ($options['attributes'] as $attrib) { … … 3284 3284 } 3285 3285 3286 // Get folder rights (MYRIGHTS) 3287 if ($acl && !$options['noselect']) { 3288 // skip shared roots 3289 if (!$options['is_root'] || $options['namespace'] == 'personal') { 3290 $options['rights'] = (array)$this->my_rights($folder); 3291 } 3292 } 3293 3294 // Set 'norename' flag 3286 3295 if (!empty($options['rights'])) { 3287 3296 $options['norename'] = !in_array('x', $options['rights']) && !in_array('d', $options['rights']);
Note: See TracChangeset
for help on using the changeset viewer.
