Fix folder creation under public namespace root (#1488665)

This commit is contained in:
Aleksander Machniak
2012-09-13 20:33:31 +02:00
parent 41b3fe1782
commit 4697c2cb77
2 changed files with 3 additions and 5 deletions

View File

@@ -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