summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-10-28 11:54:53 +0100
committerAleksander Machniak <alec@alec.pl>2014-10-28 11:55:21 +0100
commitb5fd858eb21da1a17dd4b3dd76c84f7b4eb805e3 (patch)
treefcc4b6b0d5aa84098110a25e768a8730ec0f0cbd /program
parent50341eab4315d7dcefa40eb050f4bb8c544e5696 (diff)
Fix bug where creating subfolders in shared folders wasn't possible without ACL extension (#1490113)
Diffstat (limited to 'program')
-rw-r--r--program/steps/settings/save_folder.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/settings/save_folder.inc b/program/steps/settings/save_folder.inc
index a054224f1..4bcc4c50b 100644
--- a/program/steps/settings/save_folder.inc
+++ b/program/steps/settings/save_folder.inc
@@ -70,7 +70,9 @@ else {
}
// Check access rights to the parent folder
-if (!$error && strlen($path) && (!strlen($old_imap) || $old_imap != $name_imap)) {
+if (!$error && strlen($path) && (!strlen($old_imap) || $old_imap != $name_imap)
+ && $STORAGE->get_capability('ACL')
+) {
$parent_opts = $STORAGE->folder_info($path);
if ($parent_opts['namespace'] != 'personal'
&& (empty($parent_opts['rights']) || !preg_match('/[ck]/', implode($parent_opts['rights'])))