From a140e6d213d492a94a332150214850945361bf74 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 28 Oct 2014 06:54:53 -0400 Subject: [PATCH] Fix bug where creating subfolders in shared folders wasn't possible without ACL extension (#1490113) --- program/steps/settings/save_folder.inc | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/program/steps/settings/save_folder.inc b/program/steps/settings/save_folder.inc index b8fc490..30003aa 100644 --- a/program/steps/settings/save_folder.inc +++ b/program/steps/settings/save_folder.inc @@ -68,7 +68,9 @@ } // 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']))) -- Gitblit v1.9.1