summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-13 20:33:31 +0200
committerAleksander Machniak <alec@alec.pl>2012-09-13 20:33:31 +0200
commit4697c2cb776e1fb5c5dca44baa43733a37b00bcb (patch)
tree927a607735c3c27f7ebf0bc052581f4f15518189 /program/include/rcube_imap.php
parent41b3fe17824b1c8c00037addc0e9bdbc5506ece9 (diff)
Fix folder creation under public namespace root (#1488665)
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 0b2f84d4f..ebf31d578 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -3297,11 +3297,8 @@ class rcube_imap extends rcube_storage
}
// Get folder rights (MYRIGHTS)
- if ($acl && !$options['noselect']) {
- // skip shared roots
- if (!$options['is_root'] || $options['namespace'] == 'personal') {
- $options['rights'] = (array)$this->my_rights($folder);
- }
+ if ($acl && ($rights = $this->my_rights($folder))) {
+ $options['rights'] = $rights;
}
// Set 'norename' flag