alecpl
2011-08-04 c6c99c89e68d43b705c702b4651cac81c78286d3
program/steps/settings/save_folder.inc
@@ -55,6 +55,16 @@
    }
}
// Check access rights to the parent folder
if (!$error && strlen($path)) {
    $parent_opts = $RCMAIL->imap->mailbox_info($path);
    if ($parent_opts['namespace'] != 'personal'
        && (empty($parent_opts['rights']) || !preg_match('/[ck]/', implode($parent_opts)))
    ) {
        $error = rcube_label('parentnotwritable');
    }
}
if ($error) {
    $OUTPUT->command('display_message', $error, 'error');
}