summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-30 15:22:08 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-30 15:22:08 +0000
commite1e6a8446d3d7231064913e454698d202a64be87 (patch)
tree6d170782f78c0c0fd2e9d9a373951ec001a6db56 /roundcubemail/program/steps
parent84917c3dfdc8259239a50f1b366ef676511737a8 (diff)
Restrict folders list to write-only in selectors for special folders and save-message-to option
git-svn-id: https://svn.roundcube.net/trunk@5297 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc3
-rw-r--r--roundcubemail/program/steps/settings/func.inc2
2 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index aac05be00..c31ec9b2b 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -1383,7 +1383,8 @@ function rcmail_store_target_selection($attrib)
$attrib['name'] = '_store_target';
$select = rcmail_mailbox_select(array_merge($attrib, array(
'noselection' => '- '.rcube_label('dontsave').' -',
- 'folder_filter' => 'mail'
+ 'folder_filter' => 'mail',
+ 'folder_rights' => 'w',
)));
return $select->show($_SESSION['compose']['param']['sent_mbox'], $attrib);
}
diff --git a/roundcubemail/program/steps/settings/func.inc b/roundcubemail/program/steps/settings/func.inc
index e6fd9109d..cb8b91881 100644
--- a/roundcubemail/program/steps/settings/func.inc
+++ b/roundcubemail/program/steps/settings/func.inc
@@ -676,7 +676,7 @@ function rcmail_user_prefs($current=null)
// load folders list only when needed
if ($current) {
$select = rcmail_mailbox_select(array('noselection' => '---', 'realnames' => true,
- 'maxlength' => 30, 'exceptions' => array('INBOX')));
+ 'maxlength' => 30, 'exceptions' => array('INBOX'), 'folder_filter' => 'mail', 'folder_rights' => 'w'));
}
else // dummy select
$select = new html_select();