|
|
@ -68,7 +68,9 @@ else {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Check access rights to the parent folder
|
|
|
|
// 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);
|
|
|
|
$parent_opts = $STORAGE->folder_info($path);
|
|
|
|
if ($parent_opts['namespace'] != 'personal'
|
|
|
|
if ($parent_opts['namespace'] != 'personal'
|
|
|
|
&& (empty($parent_opts['rights']) || !preg_match('/[ck]/', implode($parent_opts['rights'])))
|
|
|
|
&& (empty($parent_opts['rights']) || !preg_match('/[ck]/', implode($parent_opts['rights'])))
|
|
|
|